pub struct IoFlags { /* private fields */ }
Implementations§
Source§impl IoFlags
impl IoFlags
Sourcepub fn from_bits(bits: c_int) -> Option<IoFlags>
pub fn from_bits(bits: c_int) -> Option<IoFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
Sourcepub fn from_bits_truncate(bits: c_int) -> IoFlags
pub fn from_bits_truncate(bits: c_int) -> IoFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub fn intersects(&self, other: IoFlags) -> bool
pub fn intersects(&self, other: IoFlags) -> bool
Returns true
if there are flags common to both self
and other
.
Trait Implementations§
Source§impl BitAndAssign for IoFlags
impl BitAndAssign for IoFlags
Source§fn bitand_assign(&mut self, other: IoFlags)
fn bitand_assign(&mut self, other: IoFlags)
Disables all flags disabled in the set.
Source§impl BitOrAssign for IoFlags
impl BitOrAssign for IoFlags
Source§fn bitor_assign(&mut self, other: IoFlags)
fn bitor_assign(&mut self, other: IoFlags)
Adds the set of flags.
Source§impl BitXorAssign for IoFlags
impl BitXorAssign for IoFlags
Source§fn bitxor_assign(&mut self, other: IoFlags)
fn bitxor_assign(&mut self, other: IoFlags)
Toggles the set of flags.
Source§impl Extend<IoFlags> for IoFlags
impl Extend<IoFlags> for IoFlags
Source§fn extend<T: IntoIterator<Item = IoFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = IoFlags>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬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<IoFlags> for IoFlags
impl FromIterator<IoFlags> for IoFlags
Source§impl Ord for IoFlags
impl Ord for IoFlags
Source§impl PartialOrd for IoFlags
impl PartialOrd for IoFlags
Source§impl SubAssign for IoFlags
impl SubAssign for IoFlags
Source§fn sub_assign(&mut self, other: IoFlags)
fn sub_assign(&mut self, other: IoFlags)
Disables all flags enabled in the set.
impl Copy for IoFlags
impl Eq for IoFlags
impl StructuralPartialEq for IoFlags
Auto Trait Implementations§
impl Freeze for IoFlags
impl RefUnwindSafe for IoFlags
impl Send for IoFlags
impl Sync for IoFlags
impl Unpin for IoFlags
impl UnwindSafe for IoFlags
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