Struct x11rb_protocol::protocol::xkb::LockDeviceFlags
source · pub struct LockDeviceFlags(u8);
Tuple Fields§
§0: u8
Implementations§
source§impl LockDeviceFlags
impl LockDeviceFlags
sourcepub fn contains(self, flag: impl Into<u8>) -> bool
pub fn contains(self, flag: impl Into<u8>) -> 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<u8>) -> bool
pub fn intersects(self, flag: impl Into<u8>) -> 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 BitAnd<LockDeviceFlags> for u8
impl BitAnd<LockDeviceFlags> for u8
§type Output = LockDeviceFlags
type Output = LockDeviceFlags
The resulting type after applying the
&
operator.source§impl BitAnd<u8> for LockDeviceFlags
impl BitAnd<u8> for LockDeviceFlags
source§impl BitAnd for LockDeviceFlags
impl BitAnd for LockDeviceFlags
source§impl BitAndAssign<LockDeviceFlags> for u8
impl BitAndAssign<LockDeviceFlags> for u8
source§fn bitand_assign(&mut self, other: LockDeviceFlags)
fn bitand_assign(&mut self, other: LockDeviceFlags)
Performs the
&=
operation. Read moresource§impl BitAndAssign<u8> for LockDeviceFlags
impl BitAndAssign<u8> for LockDeviceFlags
source§fn bitand_assign(&mut self, other: u8)
fn bitand_assign(&mut self, other: u8)
Performs the
&=
operation. Read moresource§impl BitAndAssign for LockDeviceFlags
impl BitAndAssign for LockDeviceFlags
source§fn bitand_assign(&mut self, other: LockDeviceFlags)
fn bitand_assign(&mut self, other: LockDeviceFlags)
Performs the
&=
operation. Read moresource§impl BitOr<LockDeviceFlags> for u8
impl BitOr<LockDeviceFlags> for u8
§type Output = LockDeviceFlags
type Output = LockDeviceFlags
The resulting type after applying the
|
operator.source§impl BitOr<u8> for LockDeviceFlags
impl BitOr<u8> for LockDeviceFlags
source§impl BitOr for LockDeviceFlags
impl BitOr for LockDeviceFlags
source§impl BitOrAssign<LockDeviceFlags> for u8
impl BitOrAssign<LockDeviceFlags> for u8
source§fn bitor_assign(&mut self, other: LockDeviceFlags)
fn bitor_assign(&mut self, other: LockDeviceFlags)
Performs the
|=
operation. Read moresource§impl BitOrAssign<u8> for LockDeviceFlags
impl BitOrAssign<u8> for LockDeviceFlags
source§fn bitor_assign(&mut self, other: u8)
fn bitor_assign(&mut self, other: u8)
Performs the
|=
operation. Read moresource§impl BitOrAssign for LockDeviceFlags
impl BitOrAssign for LockDeviceFlags
source§fn bitor_assign(&mut self, other: LockDeviceFlags)
fn bitor_assign(&mut self, other: LockDeviceFlags)
Performs the
|=
operation. Read moresource§impl Clone for LockDeviceFlags
impl Clone for LockDeviceFlags
source§fn clone(&self) -> LockDeviceFlags
fn clone(&self) -> LockDeviceFlags
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for LockDeviceFlags
impl Debug for LockDeviceFlags
source§impl Default for LockDeviceFlags
impl Default for LockDeviceFlags
source§fn default() -> LockDeviceFlags
fn default() -> LockDeviceFlags
Returns the “default value” for a type. Read more
source§impl From<LockDeviceFlags> for Option<u16>
impl From<LockDeviceFlags> for Option<u16>
source§fn from(input: LockDeviceFlags) -> Self
fn from(input: LockDeviceFlags) -> Self
Converts to this type from the input type.
source§impl From<LockDeviceFlags> for Option<u32>
impl From<LockDeviceFlags> for Option<u32>
source§fn from(input: LockDeviceFlags) -> Self
fn from(input: LockDeviceFlags) -> Self
Converts to this type from the input type.
source§impl From<LockDeviceFlags> for Option<u8>
impl From<LockDeviceFlags> for Option<u8>
source§fn from(input: LockDeviceFlags) -> Self
fn from(input: LockDeviceFlags) -> Self
Converts to this type from the input type.
source§impl From<LockDeviceFlags> for u16
impl From<LockDeviceFlags> for u16
source§fn from(input: LockDeviceFlags) -> Self
fn from(input: LockDeviceFlags) -> Self
Converts to this type from the input type.
source§impl From<LockDeviceFlags> for u32
impl From<LockDeviceFlags> for u32
source§fn from(input: LockDeviceFlags) -> Self
fn from(input: LockDeviceFlags) -> Self
Converts to this type from the input type.
source§impl From<LockDeviceFlags> for u8
impl From<LockDeviceFlags> for u8
source§fn from(input: LockDeviceFlags) -> Self
fn from(input: LockDeviceFlags) -> Self
Converts to this type from the input type.
source§impl From<u8> for LockDeviceFlags
impl From<u8> for LockDeviceFlags
source§impl Hash for LockDeviceFlags
impl Hash for LockDeviceFlags
source§impl Ord for LockDeviceFlags
impl Ord for LockDeviceFlags
source§fn cmp(&self, other: &LockDeviceFlags) -> Ordering
fn cmp(&self, other: &LockDeviceFlags) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for LockDeviceFlags
impl PartialEq for LockDeviceFlags
source§fn eq(&self, other: &LockDeviceFlags) -> bool
fn eq(&self, other: &LockDeviceFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for LockDeviceFlags
impl PartialOrd for LockDeviceFlags
source§fn partial_cmp(&self, other: &LockDeviceFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &LockDeviceFlags) -> Option<Ordering>
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 LockDeviceFlags
impl Eq for LockDeviceFlags
impl StructuralPartialEq for LockDeviceFlags
Auto Trait Implementations§
impl Freeze for LockDeviceFlags
impl RefUnwindSafe for LockDeviceFlags
impl Send for LockDeviceFlags
impl Sync for LockDeviceFlags
impl Unpin for LockDeviceFlags
impl UnwindSafe for LockDeviceFlags
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