pub enum FlexDirection {
Row,
Column,
RowReverse,
ColumnReverse,
}Expand description
The direction of the main axis in a flex layout.
Variants§
Row
Lays out items horizontally from left to right.
Column
Lays out items vertically from top to bottom.
RowReverse
Lays out items horizontally from right to left.
ColumnReverse
Lays out items vertically from bottom to top.
Trait Implementations§
Source§impl Clone for FlexDirection
impl Clone for FlexDirection
Source§fn clone(&self) -> FlexDirection
fn clone(&self) -> FlexDirection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FlexDirection
impl Debug for FlexDirection
Source§impl Default for FlexDirection
impl Default for FlexDirection
Source§fn default() -> FlexDirection
fn default() -> FlexDirection
Returns the “default value” for a type. Read more
Source§impl Into<FlexDirection> for FlexDirection
impl Into<FlexDirection> for FlexDirection
Source§fn into(self) -> FlexDirection
fn into(self) -> FlexDirection
Converts this type into the (usually inferred) input type.
impl Copy for FlexDirection
Auto Trait Implementations§
impl Freeze for FlexDirection
impl RefUnwindSafe for FlexDirection
impl Send for FlexDirection
impl Sync for FlexDirection
impl Unpin for FlexDirection
impl UnwindSafe for FlexDirection
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