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