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