Struct x11rb_protocol::protocol::xinput::ScrollFlags
source · pub struct ScrollFlags(/* private fields */);
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
§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
§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<'de> Deserialize<'de> for ScrollFlags
impl<'de> Deserialize<'de> for ScrollFlags
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. 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§fn eq(&self, other: &ScrollFlags) -> bool
fn eq(&self, other: &ScrollFlags) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ScrollFlags
impl PartialOrd for ScrollFlags
source§fn partial_cmp(&self, other: &ScrollFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &ScrollFlags) -> 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 moresource§impl Serialize for ScrollFlags
impl Serialize 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