pub enum FlexDirection {
Row,
Column,
RowReverse,
ColumnReverse,
}Expand description
Main-axis direction for flex containers.
Variants§
Row
Left-to-right horizontal row.
Column
Top-to-bottom vertical column.
RowReverse
Right-to-left horizontal row.
ColumnReverse
Bottom-to-top vertical column.
Trait Implementations§
Source§impl Clone for FlexDirection
impl Clone for FlexDirection
impl Copy for FlexDirection
Source§impl Debug for FlexDirection
impl Debug for FlexDirection
Source§impl Default for FlexDirection
impl Default for FlexDirection
impl Eq for FlexDirection
Source§impl Hash for FlexDirection
impl Hash for FlexDirection
Source§impl Ord for FlexDirection
impl Ord for FlexDirection
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for FlexDirection
impl PartialEq for FlexDirection
Source§impl PartialOrd for FlexDirection
impl PartialOrd for FlexDirection
impl StructuralPartialEq for FlexDirection
Auto Trait Implementations§
impl Forget for FlexDirection
impl Freeze for FlexDirection
impl Move for FlexDirection
impl RefUnwindSafe for FlexDirection
impl Send for FlexDirection
impl Sync for FlexDirection
impl Unpin for FlexDirection
impl UnsafeUnpin 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