pub fn add(&mut self, mut other: Self) {
        for read in other.items.drain(..other.shared) {
            self.push_read(read);
        }

        for shared in other.items.drain(..(other.write - other.shared)) {
            self.push(shared);
        }

        for write in other.items.drain(..) {
            self.push_write(write);
        }
    }
/// Adds all of the permissions contained in the given set to this permission set.
Adds all of the permissions contained in the given set to this permission set.
Adds all of the permissions contained in the given set to this permission set .
pub fn add(&mut self, mut other: Self) {
        for read in other.items.drain(..other.shared) {
            self.push_read(read);
        }
        for shared in other.items.drain(..(other.write - other.shared)) {
            self.push(shared);
        }
        for write in other.items.drain(..) {
            self.push_write(write);
        }
    }
pub fn add ( & mut self , mut other : Self ) { for read in other . items . drain ( .. other . shared ) { self . push_read ( read ) ; } for shared in other . items . drain ( .. ( other . write - other . shared ) ) { self . push ( shared ) ; } for write in other . items . drain ( .. ) { self . push_write ( write ) ; } }
Adds all of the permissions contained in the given set to this permission set.
Adds all of the permissions contained in the given set to this permission set .
&mut self
other
Self
&mut self
other
Self