pub struct AxisFlags { /* private fields */ }Implementations
sourceimpl AxisFlags
impl AxisFlags
pub const X: AxisFlags = _
pub const Y: AxisFlags = _
pub const PRESSURE: AxisFlags = _
pub const XTILT: AxisFlags = _
pub const YTILT: AxisFlags = _
pub const WHEEL: AxisFlags = _
pub const DISTANCE: AxisFlags = _
pub const ROTATION: AxisFlags = _
pub const SLIDER: AxisFlags = _
sourcepub fn from_bits(bits: u32) -> Option<AxisFlags>
pub fn from_bits(bits: u32) -> Option<AxisFlags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub const fn from_bits_truncate(bits: u32) -> AxisFlags
pub const fn from_bits_truncate(bits: u32) -> AxisFlags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: u32) -> AxisFlags
pub const unsafe fn from_bits_unchecked(bits: u32) -> AxisFlags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
sourcepub const fn intersects(&self, other: AxisFlags) -> bool
pub const fn intersects(&self, other: AxisFlags) -> bool
Returns true if there are flags common to both self and other.
Trait Implementations
sourceimpl BitAndAssign<AxisFlags> for AxisFlags
impl BitAndAssign<AxisFlags> for AxisFlags
sourcefn bitand_assign(&mut self, other: AxisFlags)
fn bitand_assign(&mut self, other: AxisFlags)
Disables all flags disabled in the set.
sourceimpl BitOrAssign<AxisFlags> for AxisFlags
impl BitOrAssign<AxisFlags> for AxisFlags
sourcefn bitor_assign(&mut self, other: AxisFlags)
fn bitor_assign(&mut self, other: AxisFlags)
Adds the set of flags.
sourceimpl BitXorAssign<AxisFlags> for AxisFlags
impl BitXorAssign<AxisFlags> for AxisFlags
sourcefn bitxor_assign(&mut self, other: AxisFlags)
fn bitxor_assign(&mut self, other: AxisFlags)
Toggles the set of flags.
sourceimpl Extend<AxisFlags> for AxisFlags
impl Extend<AxisFlags> for AxisFlags
sourcefn extend<T: IntoIterator<Item = AxisFlags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = AxisFlags>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl FromIterator<AxisFlags> for AxisFlags
impl FromIterator<AxisFlags> for AxisFlags
sourceimpl<'a> FromValueOptional<'a> for AxisFlags
impl<'a> FromValueOptional<'a> for AxisFlags
unsafe fn from_value_optional(value: &Value) -> Option<Self>
sourceimpl Ord for AxisFlags
impl Ord for AxisFlags
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<AxisFlags> for AxisFlags
impl PartialOrd<AxisFlags> for AxisFlags
sourcefn partial_cmp(&self, other: &AxisFlags) -> Option<Ordering>
fn partial_cmp(&self, other: &AxisFlags) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl StaticType for AxisFlags
impl StaticType for AxisFlags
sourcefn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self.sourceimpl SubAssign<AxisFlags> for AxisFlags
impl SubAssign<AxisFlags> for AxisFlags
sourcefn sub_assign(&mut self, other: AxisFlags)
fn sub_assign(&mut self, other: AxisFlags)
Disables all flags enabled in the set.
impl Copy for AxisFlags
impl Eq for AxisFlags
impl StructuralEq for AxisFlags
impl StructuralPartialEq for AxisFlags
Auto Trait Implementations
impl RefUnwindSafe for AxisFlags
impl Send for AxisFlags
impl Sync for AxisFlags
impl Unpin for AxisFlags
impl UnwindSafe for AxisFlags
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
impl<T> ToSendValue for Twhere
T: SetValue + Send + ToValue + ?Sized,
sourcefn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue clone of self.