pub struct ModeFlag(/* private fields */);
Implementations§
Source§impl ModeFlag
impl ModeFlag
pub const HSYNC_POSITIVE: Self
pub const HSYNC_NEGATIVE: Self
pub const VSYNC_POSITIVE: Self
pub const VSYNC_NEGATIVE: Self
pub const INTERLACE: Self
pub const DOUBLE_SCAN: Self
pub const CSYNC: Self
pub const CSYNC_POSITIVE: Self
pub const CSYNC_NEGATIVE: Self
pub const HSKEW_PRESENT: Self
pub const BCAST: Self
pub const PIXEL_MULTIPLEX: Self
pub const DOUBLE_CLOCK: Self
pub const HALVE_CLOCK: Self
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<ModeFlag> for u32
impl BitAndAssign<ModeFlag> for u32
Source§fn bitand_assign(&mut self, other: ModeFlag)
fn bitand_assign(&mut self, other: ModeFlag)
Performs the
&=
operation. Read moreSource§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<ModeFlag> for u32
impl BitOrAssign<ModeFlag> for u32
Source§fn bitor_assign(&mut self, other: ModeFlag)
fn bitor_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<'de> Deserialize<'de> for ModeFlag
impl<'de> Deserialize<'de> for ModeFlag
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for ModeFlag
impl Ord for ModeFlag
Source§impl PartialOrd for ModeFlag
impl PartialOrd for ModeFlag
impl 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