[−][src]Struct coreutils_core::os::group::Groups
A collection of Group
.
Methods
impl Groups
[src]
pub const fn new() -> Self
[src]
Creates a empty new Groups
.
pub fn caller() -> Result<Self>
[src]
Get all the process caller groups.
Errors
If it fails to get a Group
, an error variant will be returned.
pub fn from_username(username: &str) -> Result<Self>
[src]
Get all groups that username
belongs.
Errors
If it fails to get a Group
, an error variant will be returned.
pub fn from_group_list(group_list: &[&str]) -> Result<Self>
[src]
Get groups from a list of group names.
Errors
If it fails to get a Group
, an error variant will be returned.
pub fn push(&mut self, value: Group)
[src]
pub fn is_empty(&self) -> bool
[src]
Return true
if Groups
contains 0 elements.
pub fn into_vec(self) -> Vec<Group>
[src]
pub fn iter(&self) -> Iter<Group>
[src]
Creates a iterator over it's entries.
Trait Implementations
impl Clone for Groups
[src]
impl Debug for Groups
[src]
impl Default for Groups
[src]
impl IntoIterator for Groups
[src]
Auto Trait Implementations
impl RefUnwindSafe for Groups
impl Send for Groups
impl Sync for Groups
impl Unpin for Groups
impl UnwindSafe for Groups
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<I> IntoIterator for I where
I: Iterator,
[src]
I: Iterator,
type Item = <I as Iterator>::Item
The type of the elements being iterated over.
type IntoIter = I
Which kind of iterator are we turning this into?
fn into_iter(self) -> I
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,