#[non_exhaustive]pub enum PanAxis {
AxisNone,
XAxis,
YAxis,
AxisAuto,
}
Expand description
The axis of the constraint that should be applied on the panning action
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
AxisNone
No constraint
XAxis
Set a constraint on the X axis
YAxis
Set a constraint on the Y axis
AxisAuto
Constrain panning automatically based on initial movement (available since 1.24)
Trait Implementations§
Source§impl<'a> FromValue<'a> for PanAxis
impl<'a> FromValue<'a> for PanAxis
Source§unsafe fn from_value(value: &Value) -> Self
unsafe fn from_value(value: &Value) -> Self
Safety Read more
Source§impl<'a> FromValueOptional<'a> for PanAxis
impl<'a> FromValueOptional<'a> for PanAxis
Source§impl Ord for PanAxis
impl Ord for PanAxis
Source§impl PartialOrd for PanAxis
impl PartialOrd for PanAxis
Source§impl StaticType for PanAxis
impl StaticType for PanAxis
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Copy for PanAxis
impl Eq for PanAxis
impl StructuralPartialEq for PanAxis
Auto Trait Implementations§
impl Freeze for PanAxis
impl RefUnwindSafe for PanAxis
impl Send for PanAxis
impl Sync for PanAxis
impl Unpin for PanAxis
impl UnwindSafe for PanAxis
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§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.