Struct x11rb::protocol::xinput::ScrollFlags   
source · pub struct ScrollFlags(/* private fields */);Implementations§
source§impl ScrollFlags
 
impl ScrollFlags
pub const NO_EMULATION: ScrollFlags = _
pub const PREFERRED: ScrollFlags = _
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.
sourcepub fn remove(self, flags: impl Into<u32>) -> ScrollFlags
 
pub fn remove(self, flags: impl Into<u32>) -> ScrollFlags
Remove some flags.
All bits that are set in the given flags are removed from the self instance, if
they are present.
Trait Implementations§
source§impl BitAnd<u32> for ScrollFlags
 
impl BitAnd<u32> for ScrollFlags
source§impl BitAnd for ScrollFlags
 
impl BitAnd for ScrollFlags
§type Output = ScrollFlags
 
type Output = ScrollFlags
The resulting type after applying the 
& operator.source§fn bitand(self, other: ScrollFlags) -> <ScrollFlags as BitAnd>::Output
 
fn bitand(self, other: ScrollFlags) -> <ScrollFlags as BitAnd>::Output
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<u32> for ScrollFlags
 
impl BitOr<u32> for ScrollFlags
source§impl BitOr for ScrollFlags
 
impl BitOr for ScrollFlags
§type Output = ScrollFlags
 
type Output = ScrollFlags
The resulting type after applying the 
| operator.source§fn bitor(self, other: ScrollFlags) -> <ScrollFlags as BitOr>::Output
 
fn bitor(self, other: ScrollFlags) -> <ScrollFlags as BitOr>::Output
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<u16> for ScrollFlags
 
impl From<u16> for ScrollFlags
source§fn from(value: u16) -> ScrollFlags
 
fn from(value: u16) -> ScrollFlags
Converts to this type from the input type.
source§impl From<u32> for ScrollFlags
 
impl From<u32> for ScrollFlags
source§fn from(value: u32) -> ScrollFlags
 
fn from(value: u32) -> ScrollFlags
Converts to this type from the input type.
source§impl From<u8> for ScrollFlags
 
impl From<u8> for ScrollFlags
source§fn from(value: u8) -> ScrollFlags
 
fn from(value: u8) -> ScrollFlags
Converts to this type from the input type.
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 moreimpl 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