Struct ModeFlag
pub struct ModeFlag(/* private fields */);
Implementations§
§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 = _
§impl ModeFlag
impl ModeFlag
pub 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.
pub 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§
§impl BitAndAssign<u32> for ModeFlag
impl BitAndAssign<u32> for ModeFlag
§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read more§impl BitAndAssign for ModeFlag
impl BitAndAssign for ModeFlag
§fn bitand_assign(&mut self, other: ModeFlag)
fn bitand_assign(&mut self, other: ModeFlag)
Performs the
&=
operation. Read more§impl BitOrAssign<u32> for ModeFlag
impl BitOrAssign<u32> for ModeFlag
§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read more§impl BitOrAssign for ModeFlag
impl BitOrAssign for ModeFlag
§fn bitor_assign(&mut self, other: ModeFlag)
fn bitor_assign(&mut self, other: ModeFlag)
Performs the
|=
operation. Read more§impl Ord for ModeFlag
impl Ord for ModeFlag
§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)