pub struct ModeFlag(u32);
Tuple Fields§
§0: u32
Implementations§
source§impl ModeFlag
impl ModeFlag
pub const HSYNC_POSITIVE: ModeFlag = _
pub const HSYNC_NEGATIVE: ModeFlag = _
pub const VSYNC_POSITIVE: ModeFlag = _
pub const VSYNC_NEGATIVE: ModeFlag = _
pub const INTERLACE: ModeFlag = _
pub const DOUBLE_SCAN: ModeFlag = _
pub const CSYNC: ModeFlag = _
pub const CSYNC_POSITIVE: ModeFlag = _
pub const CSYNC_NEGATIVE: ModeFlag = _
pub const HSKEW_PRESENT: ModeFlag = _
pub const BCAST: ModeFlag = _
pub const PIXEL_MULTIPLEX: ModeFlag = _
pub const DOUBLE_CLOCK: ModeFlag = _
pub const HALVE_CLOCK: ModeFlag = _
source§impl ModeFlag
impl ModeFlag
sourcepub fn contains(self, flag: impl Into<u32>) -> bool
pub fn contains(self, flag: impl Into<u32>) -> bool
Check if this object has all bits set that are also set in flag
.
flag
can be a single enum variant or a whole other mask.
sourcepub fn intersects(self, flag: impl Into<u32>) -> bool
pub fn intersects(self, flag: impl Into<u32>) -> bool
Check if this object has some bits set that are also set in flag
.
flag
can be a single enum variant or a whole other mask.
Trait Implementations§
source§impl BitAndAssign<u32> for ModeFlag
impl BitAndAssign<u32> for ModeFlag
source§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read moresource§impl BitAndAssign for ModeFlag
impl BitAndAssign for ModeFlag
source§fn bitand_assign(&mut self, other: ModeFlag)
fn bitand_assign(&mut self, other: ModeFlag)
Performs the
&=
operation. Read moresource§impl BitOrAssign<u32> for ModeFlag
impl BitOrAssign<u32> for ModeFlag
source§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read moresource§impl BitOrAssign for ModeFlag
impl BitOrAssign for ModeFlag
source§fn bitor_assign(&mut self, other: ModeFlag)
fn bitor_assign(&mut self, other: ModeFlag)
Performs the
|=
operation. Read moresource§impl Ord for ModeFlag
impl Ord for ModeFlag
source§impl PartialEq for ModeFlag
impl PartialEq for ModeFlag
source§impl PartialOrd for ModeFlag
impl PartialOrd for ModeFlag
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for ModeFlag
impl Eq for ModeFlag
impl StructuralPartialEq for ModeFlag
Auto Trait Implementations§
impl Freeze for ModeFlag
impl RefUnwindSafe for ModeFlag
impl Send for ModeFlag
impl Sync for ModeFlag
impl Unpin for ModeFlag
impl UnwindSafe for ModeFlag
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