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