#[non_exhaustive]pub enum TransformStep {
Up,
Down,
Leading,
Trailing,
}Expand description
One directional nudge on a transform handle.
The vocabulary the controller’s non-pointer routes are stated in: the
keyboard’s four arrows, the two halves of an assistive-technology
Increment / Decrement, and the four custom actions a corner or the
frame band publishes so that a screen-reader user can drive one axis at a
time. Named for the frame’s own axes, like every other name in this crate —
Leading is -x and Trailing is +x, whatever the reading direction.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Up
Decrease the driven vertical coordinate.
Down
Increase it.
Leading
Decrease the driven horizontal coordinate.
Trailing
Increase it.
Implementations§
Source§impl TransformStep
impl TransformStep
Sourcepub const ALL: [TransformStep; 4]
pub const ALL: [TransformStep; 4]
Every step, in the order a non-scalar handle publishes its custom
actions. The position in this array is the
[accesskit::CustomAction] id, so it is part of the published
contract: reorder it and an assistive technology holding a stale tree
invokes the wrong direction.
Sourcepub const fn from_index(index: usize) -> Option<Self>
pub const fn from_index(index: usize) -> Option<Self>
The step at index, or None — the inverse of
index, used to resolve a custom-action id arriving
from an assistive technology.
Trait Implementations§
Source§impl Clone for TransformStep
impl Clone for TransformStep
Source§fn clone(&self) -> TransformStep
fn clone(&self) -> TransformStep
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TransformStep
Source§impl Debug for TransformStep
impl Debug for TransformStep
impl Eq for TransformStep
Source§impl Hash for TransformStep
impl Hash for TransformStep
Source§impl Ord for TransformStep
impl Ord for TransformStep
Source§fn cmp(&self, other: &TransformStep) -> Ordering
fn cmp(&self, other: &TransformStep) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for TransformStep
impl PartialEq for TransformStep
Source§impl PartialOrd for TransformStep
impl PartialOrd for TransformStep
impl StructuralPartialEq for TransformStep
Auto Trait Implementations§
impl Freeze for TransformStep
impl RefUnwindSafe for TransformStep
impl Send for TransformStep
impl Sync for TransformStep
impl Unpin for TransformStep
impl UnsafeUnpin for TransformStep
impl UnwindSafe for TransformStep
Blanket Implementations§
§impl<T> AnyEq for T
impl<T> AnyEq for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more