[][src]Struct coreutils_core::os::group::Groups

pub struct Groups { /* fields omitted */ }

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]

Insert a Group on Groups.

pub fn is_empty(&self) -> bool[src]

Return true if Groups contains 0 elements.

pub fn into_vec(self) -> Vec<Group>[src]

Transform Groups to a Vector of Group.

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]

type IntoIter = IntoIter<Group>

Which kind of iterator are we turning this into?

type Item = Group

The type of the elements being iterated over.

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

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?

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.