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