pub enum TraversalDirection {
Up,
Right,
Down,
Left,
}Expand description
A direction along either the horizontal or vertical axes.
This is used by DirectionalFocusTraversalPolicyMixin, and
AnyFocusNode::focus_in_direction to indicate which direction to look in for the next
focus.
Variants§
Up
Indicates a direction above the currently focused widget.
Right
Indicates a direction to the right of the currently focused widget.
This direction is unaffected by the Directionality of the current context.
Down
Indicates a direction below the currently focused widget.
Left
Indicates a direction to the left of the currently focused widget.
This direction is unaffected by the Directionality of the current context.
Trait Implementations§
Source§impl Clone for TraversalDirection
impl Clone for TraversalDirection
impl Copy for TraversalDirection
Source§impl Debug for TraversalDirection
impl Debug for TraversalDirection
impl Eq for TraversalDirection
Source§impl Hash for TraversalDirection
impl Hash for TraversalDirection
Source§impl PartialEq for TraversalDirection
impl PartialEq for TraversalDirection
impl StructuralPartialEq for TraversalDirection
Auto Trait Implementations§
impl Forget for TraversalDirection
impl Freeze for TraversalDirection
impl Move for TraversalDirection
impl RefUnwindSafe for TraversalDirection
impl Send for TraversalDirection
impl Sync for TraversalDirection
impl Unpin for TraversalDirection
impl UnsafeUnpin for TraversalDirection
impl UnwindSafe for TraversalDirection
Blanket Implementations§
Source§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
Mutably borrows from an owned value. Read more
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.