pub enum VerticalDirection {
Up,
Down,
}Expand description
A direction in which boxes flow vertically.
This is used by the flex algorithm (e.g. Column) to decide in which
direction to draw boxes.
This is also used to disambiguate start and end values (e.g.
MainAxisAlignment.start or CrossAxisAlignment.end).
See also:
TextDirection, which controls the same thing but horizontally.
Variants§
Up
Boxes should start at the bottom and be stacked vertically towards the top.
The “start” is at the bottom, the “end” is at the top.
Down
Boxes should start at the top and be stacked vertically towards the bottom.
The “start” is at the top, the “end” is at the bottom.
Trait Implementations§
Source§impl Clone for VerticalDirection
impl Clone for VerticalDirection
Source§fn clone(&self) -> VerticalDirection
fn clone(&self) -> VerticalDirection
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for VerticalDirection
Source§impl Debug for VerticalDirection
impl Debug for VerticalDirection
impl Eq for VerticalDirection
Source§impl PartialEq for VerticalDirection
impl PartialEq for VerticalDirection
impl StructuralPartialEq for VerticalDirection
Auto Trait Implementations§
impl Forget for VerticalDirection
impl Freeze for VerticalDirection
impl Move for VerticalDirection
impl RefUnwindSafe for VerticalDirection
impl Send for VerticalDirection
impl Sync for VerticalDirection
impl Unpin for VerticalDirection
impl UnsafeUnpin for VerticalDirection
impl UnwindSafe for VerticalDirection
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
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.