Struct x11rb_protocol::protocol::randr::ModeFlag
source · 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 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 StructuralEq for ModeFlag
impl StructuralPartialEq for ModeFlag
Auto Trait Implementations§
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