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