Struct GestureSwipeEventFlags
pub struct GestureSwipeEventFlags(/* private fields */);
Implementations§
§impl GestureSwipeEventFlags
impl GestureSwipeEventFlags
pub const GESTURE_SWIPE_CANCELLED: GestureSwipeEventFlags = _
§impl GestureSwipeEventFlags
impl GestureSwipeEventFlags
pub 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.
pub 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.
pub fn remove(self, flags: impl Into<u32>) -> GestureSwipeEventFlags
pub fn remove(self, flags: impl Into<u32>) -> GestureSwipeEventFlags
Remove some flags.
All bits that are set in the given flags are removed from the self
instance, if
they are present.
Trait Implementations§
§impl BitAnd<u32> for GestureSwipeEventFlags
impl BitAnd<u32> for GestureSwipeEventFlags
§impl BitAnd for GestureSwipeEventFlags
impl BitAnd for GestureSwipeEventFlags
§type Output = GestureSwipeEventFlags
type Output = GestureSwipeEventFlags
The resulting type after applying the
&
operator.§fn bitand(
self,
other: GestureSwipeEventFlags,
) -> <GestureSwipeEventFlags as BitAnd>::Output
fn bitand( self, other: GestureSwipeEventFlags, ) -> <GestureSwipeEventFlags as BitAnd>::Output
Performs the
&
operation. Read more§impl BitAndAssign<u32> for GestureSwipeEventFlags
impl BitAndAssign<u32> for GestureSwipeEventFlags
§fn bitand_assign(&mut self, other: u32)
fn bitand_assign(&mut self, other: u32)
Performs the
&=
operation. Read more§impl BitAndAssign for GestureSwipeEventFlags
impl BitAndAssign for GestureSwipeEventFlags
§fn bitand_assign(&mut self, other: GestureSwipeEventFlags)
fn bitand_assign(&mut self, other: GestureSwipeEventFlags)
Performs the
&=
operation. Read more§impl BitOr<u32> for GestureSwipeEventFlags
impl BitOr<u32> for GestureSwipeEventFlags
§impl BitOr for GestureSwipeEventFlags
impl BitOr for GestureSwipeEventFlags
§type Output = GestureSwipeEventFlags
type Output = GestureSwipeEventFlags
The resulting type after applying the
|
operator.§fn bitor(
self,
other: GestureSwipeEventFlags,
) -> <GestureSwipeEventFlags as BitOr>::Output
fn bitor( self, other: GestureSwipeEventFlags, ) -> <GestureSwipeEventFlags as BitOr>::Output
Performs the
|
operation. Read more§impl BitOrAssign<u32> for GestureSwipeEventFlags
impl BitOrAssign<u32> for GestureSwipeEventFlags
§fn bitor_assign(&mut self, other: u32)
fn bitor_assign(&mut self, other: u32)
Performs the
|=
operation. Read more§impl BitOrAssign for GestureSwipeEventFlags
impl BitOrAssign for GestureSwipeEventFlags
§fn bitor_assign(&mut self, other: GestureSwipeEventFlags)
fn bitor_assign(&mut self, other: GestureSwipeEventFlags)
Performs the
|=
operation. Read more§impl Clone for GestureSwipeEventFlags
impl Clone for GestureSwipeEventFlags
§fn clone(&self) -> GestureSwipeEventFlags
fn clone(&self) -> GestureSwipeEventFlags
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 more§impl Debug for GestureSwipeEventFlags
impl Debug for GestureSwipeEventFlags
§impl Default for GestureSwipeEventFlags
impl Default for GestureSwipeEventFlags
§fn default() -> GestureSwipeEventFlags
fn default() -> GestureSwipeEventFlags
Returns the “default value” for a type. Read more
§impl From<u16> for GestureSwipeEventFlags
impl From<u16> for GestureSwipeEventFlags
§fn from(value: u16) -> GestureSwipeEventFlags
fn from(value: u16) -> GestureSwipeEventFlags
Converts to this type from the input type.
§impl From<u32> for GestureSwipeEventFlags
impl From<u32> for GestureSwipeEventFlags
§fn from(value: u32) -> GestureSwipeEventFlags
fn from(value: u32) -> GestureSwipeEventFlags
Converts to this type from the input type.
§impl From<u8> for GestureSwipeEventFlags
impl From<u8> for GestureSwipeEventFlags
§fn from(value: u8) -> GestureSwipeEventFlags
fn from(value: u8) -> GestureSwipeEventFlags
Converts to this type from the input type.
§impl Hash for GestureSwipeEventFlags
impl Hash for GestureSwipeEventFlags
§impl Ord for GestureSwipeEventFlags
impl Ord for GestureSwipeEventFlags
§fn cmp(&self, other: &GestureSwipeEventFlags) -> Ordering
fn cmp(&self, other: &GestureSwipeEventFlags) -> 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
§impl PartialEq for GestureSwipeEventFlags
impl PartialEq for GestureSwipeEventFlags
§impl PartialOrd for GestureSwipeEventFlags
impl PartialOrd for GestureSwipeEventFlags
impl Copy for GestureSwipeEventFlags
impl Eq for GestureSwipeEventFlags
impl StructuralPartialEq for GestureSwipeEventFlags
Auto Trait Implementations§
impl Freeze for GestureSwipeEventFlags
impl RefUnwindSafe for GestureSwipeEventFlags
impl Send for GestureSwipeEventFlags
impl Sync for GestureSwipeEventFlags
impl Unpin for GestureSwipeEventFlags
impl UnwindSafe for GestureSwipeEventFlags
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
)