Struct rux::fcntl::SealFlag
[−]
[src]
pub struct SealFlag { /* fields omitted */ }
Methods
impl SealFlag
[src]
fn empty() -> SealFlag
Returns an empty set of flags.
fn all() -> SealFlag
Returns the set containing all flags.
fn bits(&self) -> i32
Returns the raw value of the flags currently stored.
fn from_bits(bits: i32) -> Option<SealFlag>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
fn from_bits_truncate(bits: i32) -> SealFlag
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: SealFlag) -> bool
Returns true
if there are flags common to both self
and other
.
fn contains(&self, other: SealFlag) -> bool
Returns true
all of the flags in other
are contained within self
.
fn insert(&mut self, other: SealFlag)
Inserts the specified flags in-place.
fn remove(&mut self, other: SealFlag)
Removes the specified flags in-place.
fn toggle(&mut self, other: SealFlag)
Toggles the specified flags in-place.
Trait Implementations
impl Clone for SealFlag
[src]
fn clone(&self) -> SealFlag
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialOrd<SealFlag> for SealFlag
[src]
fn partial_cmp(&self, __arg_0: &SealFlag) -> Option<Ordering>
fn lt(&self, __arg_0: &SealFlag) -> bool
fn le(&self, __arg_0: &SealFlag) -> bool
fn gt(&self, __arg_0: &SealFlag) -> bool
fn ge(&self, __arg_0: &SealFlag) -> bool
impl BitOr<SealFlag> for SealFlag
[src]
type Output = SealFlag
fn bitor(self, other: SealFlag) -> SealFlag
Returns the union of the two sets of flags.
impl Copy for SealFlag
[src]
impl Ord for SealFlag
[src]
impl PartialEq<SealFlag> for SealFlag
[src]
impl Sub<SealFlag> for SealFlag
[src]
type Output = SealFlag
fn sub(self, other: SealFlag) -> SealFlag
Returns the set difference of the two sets of flags.
impl BitAnd<SealFlag> for SealFlag
[src]
type Output = SealFlag
fn bitand(self, other: SealFlag) -> SealFlag
Returns the intersection between the two sets of flags.
impl BitXor<SealFlag> for SealFlag
[src]
type Output = SealFlag
fn bitxor(self, other: SealFlag) -> SealFlag
Returns the left flags, but with all the right flags toggled.
impl Eq for SealFlag
[src]
impl FromIterator<SealFlag> for SealFlag
[src]
fn from_iter<T>(iterator: T) -> SealFlag where
T: IntoIterator<Item = SealFlag>,
T: IntoIterator<Item = SealFlag>,