Struct nix::sys::stat::SFlag [] [src]

pub struct SFlag {
    // some fields omitted
}

Methods

impl SFlag

fn empty() -> SFlag

Returns an empty set of flags.

fn all() -> SFlag

Returns the set containing all flags.

fn bits(&self) -> mode_t

Returns the raw value of the flags currently stored.

fn from_bits(bits: mode_t) -> Option<SFlag>

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

fn from_bits_truncate(bits: mode_t) -> SFlag

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

fn is_empty(&self) -> bool

Returns true if no flags are currently stored.

fn is_all(&self) -> bool

Returns true if all flags are currently set.

fn intersects(&self, other: SFlag) -> bool

Returns true if there are flags common to both self and other.

fn contains(&self, other: SFlag) -> bool

Returns true all of the flags in other are contained within self.

fn insert(&mut self, other: SFlag)

Inserts the specified flags in-place.

fn remove(&mut self, other: SFlag)

Removes the specified flags in-place.

fn toggle(&mut self, other: SFlag)

Toggles the specified flags in-place.

Trait Implementations

impl Debug for SFlag

fn fmt(&self, f: &mut Formatter) -> Result

impl BitOr for SFlag

type Output = SFlag

fn bitor(self, other: SFlag) -> SFlag

impl BitXor for SFlag

type Output = SFlag

fn bitxor(self, other: SFlag) -> SFlag

impl BitAnd for SFlag

type Output = SFlag

fn bitand(self, other: SFlag) -> SFlag

impl Sub for SFlag

type Output = SFlag

fn sub(self, other: SFlag) -> SFlag

impl Not for SFlag

type Output = SFlag

fn not(self) -> SFlag

impl FromIterator<SFlag> for SFlag

fn from_iter<T: IntoIterator<Item=SFlag>>(iterator: T) -> SFlag

Derived Implementations

impl Hash for SFlag

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Ord for SFlag

fn cmp(&self, __arg_0: &SFlag) -> Ordering

impl PartialOrd for SFlag

fn partial_cmp(&self, __arg_0: &SFlag) -> Option<Ordering>

fn lt(&self, __arg_0: &SFlag) -> bool

fn le(&self, __arg_0: &SFlag) -> bool

fn gt(&self, __arg_0: &SFlag) -> bool

fn ge(&self, __arg_0: &SFlag) -> bool

impl Clone for SFlag

fn clone(&self) -> SFlag

fn clone_from(&mut self, source: &Self)

impl Eq for SFlag

impl PartialEq for SFlag

fn eq(&self, __arg_0: &SFlag) -> bool

fn ne(&self, __arg_0: &SFlag) -> bool

impl Copy for SFlag