pub struct OpenFlags { /* private fields */ }
Implementations§
Source§impl OpenFlags
impl OpenFlags
Sourcepub fn from_bits(bits: c_int) -> Option<OpenFlags>
pub fn from_bits(bits: c_int) -> Option<OpenFlags>
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) -> OpenFlags
pub fn from_bits_truncate(bits: c_int) -> OpenFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
Sourcepub fn intersects(&self, other: OpenFlags) -> bool
pub fn intersects(&self, other: OpenFlags) -> bool
Returns true
if there are flags common to both self
and other
.
Trait Implementations§
Source§impl Ord for OpenFlags
impl Ord for OpenFlags
Source§impl PartialOrd for OpenFlags
impl PartialOrd for OpenFlags
impl Copy for OpenFlags
impl Eq for OpenFlags
impl StructuralPartialEq for OpenFlags
Auto Trait Implementations§
impl Freeze for OpenFlags
impl RefUnwindSafe for OpenFlags
impl Send for OpenFlags
impl Sync for OpenFlags
impl Unpin for OpenFlags
impl UnwindSafe for OpenFlags
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