sinf 0.1.0

Library for obtaining in-depth system information at both the hardware and software levels
Documentation
use crate::Gid;

#[derive(PartialEq, Eq, PartialOrd, Ord, Debug)]
pub(crate) struct GroupInner {
    pub(crate) id: Gid,
    pub(crate) name: String,
}

/// Information about a group.
#[derive(PartialEq, Eq, PartialOrd, Ord, Debug)]
pub struct Group {
    pub(crate) inner: GroupInner,
}

impl Group {
    /// Returns the group ID.
    ///
    /// On Windows this is the group security identifier (SID).
    pub fn id(&self) -> &Gid {
        self.inner.id()
    }

    /// Returns the group name.
    pub fn name(&self) -> &str {
        self.inner.name()
    }
}