pub struct Group { /* private fields */ }Expand description
Representation of a group file.
Implementations§
Source§impl Group
impl Group
Sourcepub fn load(group_dir: &Path, warn_not_symlinks: bool) -> Result<HashSet<Self>>
pub fn load(group_dir: &Path, warn_not_symlinks: bool) -> Result<HashSet<Self>>
Load all group files from the pacdef group dir by traversing through the group dir.
This method will print a warning if warn_not_symlinks is true and a group
file is not a symlink or does not reside under a symlink dir.
§Errors
This function will return an error if any of the files under group_dir cannot
be accessed.
Trait Implementations§
Source§impl Ord for Group
impl Ord for Group
Source§impl PartialOrd for Group
impl PartialOrd for Group
impl Eq for Group
Auto Trait Implementations§
impl Freeze for Group
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnwindSafe for Group
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.