pub enum FlexDirection {
Column,
ColumnReverse,
Row,
RowReverse,
}Expand description
Enum to control how items are placed in a container. It defines the main axis and the direction (normal or reversed).
Variants§
Implementations§
Source§impl FlexDirection
impl FlexDirection
pub fn is_reversed(&self) -> bool
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 Hash for FlexDirection
impl Hash for FlexDirection
Source§impl Ord for FlexDirection
impl Ord for FlexDirection
Source§fn cmp(&self, other: &FlexDirection) -> Ordering
fn cmp(&self, other: &FlexDirection) -> Ordering
1.21.0 · 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
Source§impl PartialEq for FlexDirection
impl PartialEq for FlexDirection
Source§impl PartialOrd for FlexDirection
impl PartialOrd for FlexDirection
impl Copy for FlexDirection
impl Eq for FlexDirection
impl StructuralPartialEq 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