Trait redox_users::All
source · pub trait All: AllInner {
// Provided methods
fn iter(&self) -> Iter<'_, <Self as AllInner>::Gruser> { ... }
fn iter_mut(&mut self) -> IterMut<'_, <Self as AllInner>::Gruser> { ... }
fn get_by_name(
&self,
name: impl AsRef<str>
) -> Option<&<Self as AllInner>::Gruser> { ... }
fn get_mut_by_name(
&mut self,
name: impl AsRef<str>
) -> Option<&mut <Self as AllInner>::Gruser> { ... }
fn get_by_id(&self, id: usize) -> Option<&<Self as AllInner>::Gruser> { ... }
fn get_mut_by_id(
&mut self,
id: usize
) -> Option<&mut <Self as AllInner>::Gruser> { ... }
fn get_unique_id(&self) -> Option<usize> { ... }
fn remove_by_name(&mut self, name: impl AsRef<str>) -> bool { ... }
fn remove_by_id(&mut self, id: usize) -> bool { ... }
}
Expand description
Provided Methods§
sourcefn get_by_name(
&self,
name: impl AsRef<str>
) -> Option<&<Self as AllInner>::Gruser>
fn get_by_name( &self, name: impl AsRef<str> ) -> Option<&<Self as AllInner>::Gruser>
sourcefn get_mut_by_name(
&mut self,
name: impl AsRef<str>
) -> Option<&mut <Self as AllInner>::Gruser>
fn get_mut_by_name( &mut self, name: impl AsRef<str> ) -> Option<&mut <Self as AllInner>::Gruser>
Mutable version of All::get_by_name
.
sourcefn get_mut_by_id(
&mut self,
id: usize
) -> Option<&mut <Self as AllInner>::Gruser>
fn get_mut_by_id( &mut self, id: usize ) -> Option<&mut <Self as AllInner>::Gruser>
Mutable version of All::get_by_id
.
sourcefn get_unique_id(&self) -> Option<usize>
fn get_unique_id(&self) -> Option<usize>
sourcefn remove_by_name(&mut self, name: impl AsRef<str>) -> bool
fn remove_by_name(&mut self, name: impl AsRef<str>) -> bool
sourcefn remove_by_id(&mut self, id: usize) -> bool
fn remove_by_id(&mut self, id: usize) -> bool
Id version of All::remove_by_name
.
Object Safety§
This trait is not object safe.