Struct x11rb_protocol::protocol::xkb::VMod
source · pub struct VMod(/* private fields */);
Implementations§
source§impl VMod
impl VMod
pub const M15: Self = _
pub const M14: Self = _
pub const M13: Self = _
pub const M12: Self = _
pub const M11: Self = _
pub const M10: Self = _
pub const M9: Self = _
pub const M8: Self = _
pub const M7: Self = _
pub const M6: Self = _
pub const M5: Self = _
pub const M4: Self = _
pub const M3: Self = _
pub const M2: Self = _
pub const M1: Self = _
pub const M0: Self = _
source§impl VMod
impl VMod
sourcepub fn contains(self, flag: impl Into<u16>) -> bool
pub fn contains(self, flag: impl Into<u16>) -> 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<u16>) -> bool
pub fn intersects(self, flag: impl Into<u16>) -> 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<VMod> for u16
impl BitAndAssign<VMod> for u16
source§fn bitand_assign(&mut self, other: VMod)
fn bitand_assign(&mut self, other: VMod)
Performs the
&=
operation. Read moresource§impl BitAndAssign<u16> for VMod
impl BitAndAssign<u16> for VMod
source§fn bitand_assign(&mut self, other: u16)
fn bitand_assign(&mut self, other: u16)
Performs the
&=
operation. Read moresource§impl BitAndAssign for VMod
impl BitAndAssign for VMod
source§fn bitand_assign(&mut self, other: VMod)
fn bitand_assign(&mut self, other: VMod)
Performs the
&=
operation. Read moresource§impl BitOrAssign<VMod> for u16
impl BitOrAssign<VMod> for u16
source§fn bitor_assign(&mut self, other: VMod)
fn bitor_assign(&mut self, other: VMod)
Performs the
|=
operation. Read moresource§impl BitOrAssign<u16> for VMod
impl BitOrAssign<u16> for VMod
source§fn bitor_assign(&mut self, other: u16)
fn bitor_assign(&mut self, other: u16)
Performs the
|=
operation. Read moresource§impl BitOrAssign for VMod
impl BitOrAssign for VMod
source§fn bitor_assign(&mut self, other: VMod)
fn bitor_assign(&mut self, other: VMod)
Performs the
|=
operation. Read moresource§impl Ord for VMod
impl Ord for VMod
source§impl PartialEq for VMod
impl PartialEq for VMod
source§impl PartialOrd for VMod
impl PartialOrd for VMod
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 VMod
impl Eq for VMod
impl StructuralEq for VMod
impl StructuralPartialEq for VMod
Auto Trait Implementations§
impl RefUnwindSafe for VMod
impl Send for VMod
impl Sync for VMod
impl Unpin for VMod
impl UnwindSafe for VMod
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