pub fn remove_write(&mut self, item: &T) {
        if let Some(index) = self.find(item) {
            if index >= self.write {
                // remove
                self.items.swap_remove(index);
            } else if index >= self.shared {
                // move into read-only
                self.items.swap(index, self.shared);
                self.shared += 1;
            }
        }
    }
/// Removes write access to a resource from the permissions set.
Removes write access to a resource from the permissions set.
Removes write access to a resource from the permissions set .
pub fn remove_write(&mut self, item: &T) {
        if let Some(index) = self.find(item) {
            if index >= self.write {
                // remove
                self.items.swap_remove(index);
            } else if index >= self.shared {
                // move into read-only
                self.items.swap(index, self.shared);
                self.shared += 1;
            }
        }
    }
pub fn remove_write ( & mut self , item : & T ) { if let Some ( index ) = self . find ( item ) { if index >= self . write { // remove self . items . swap_remove ( index ) ; } else if index >= self . shared { // move into read-only self . items . swap ( index , self . shared ) ; self . shared += 1 ; } } }
Removes write access to a resource from the permissions set.
Removes write access to a resource from the permissions set .
&mut self
item
&T
&mut self
item
&T