#[repr(u8)]pub enum ChFlag {
Show 16 variants
UfNodump = 0,
UfImmutable = 1,
UfAppend = 2,
UfOpaque = 3,
UfNounlink = 4,
UfCompressed = 5,
UfTracked = 6,
UfDatavault = 7,
UfHidden = 15,
SfArchived = 16,
SfImmutable = 17,
SfAppend = 18,
SfNounlink = 20,
SfSnapshot = 21,
SfFirmlink = 23,
SfDataless = 30,
}Expand description
BSD chflags bits. Values are bit positions; masks are 1 << pos.
Variants§
UfNodump = 0
UfImmutable = 1
UfAppend = 2
UfOpaque = 3
UfNounlink = 4
UfCompressed = 5
UfTracked = 6
UfDatavault = 7
UfHidden = 15
SfArchived = 16
SfImmutable = 17
SfAppend = 18
SfNounlink = 20
SfSnapshot = 21
SfFirmlink = 23
SfDataless = 30
Trait Implementations§
Source§impl BitFlagSet<ChFlag, u32> for ChFlags
impl BitFlagSet<ChFlag, u32> for ChFlags
const BITS: u8
fn empty() -> Self
fn from_bits_retain(raw: u32) -> Self
fn from_element(element: ChFlag) -> Self
fn first(&self) -> Option<ChFlag>
fn last(&self) -> Option<ChFlag>
fn pop_first(&mut self) -> Option<ChFlag>
fn pop_last(&mut self) -> Option<ChFlag>
fn len(&self) -> usize
fn is_empty(&self) -> bool
fn insert(&mut self, value: ChFlag) -> bool
fn remove(&mut self, value: ChFlag) -> bool
fn is_subset(&self, other: &Self) -> bool
fn is_superset(&self, other: &Self) -> bool
fn is_disjoint(&self, other: &Self) -> bool
fn contains(&self, value: &ChFlag) -> bool
fn retain(&mut self, f: impl FnMut(ChFlag) -> bool)
fn iter(&self) -> PrimBitSetIter<u32, ChFlag> ⓘ
fn to_vec(&self) -> Vec<T>
impl Copy for ChFlag
impl Eq for ChFlag
Source§impl Extend<ChFlag> for ChFlags
impl Extend<ChFlag> for ChFlags
Source§fn extend<I: IntoIterator<Item = ChFlag>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = ChFlag>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: T)
fn extend_one(&mut self, item: T)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<ChFlag> for ChFlags
impl FromIterator<ChFlag> for ChFlags
impl StructuralPartialEq for ChFlag
Auto Trait Implementations§
impl Freeze for ChFlag
impl RefUnwindSafe for ChFlag
impl Send for ChFlag
impl Sync for ChFlag
impl Unpin for ChFlag
impl UnsafeUnpin for ChFlag
impl UnwindSafe for ChFlag
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