#[repr(C)]pub enum LayoutFlexDirection {
Row = 0,
RowReverse = 1,
Column = 2,
ColumnReverse = 3,
}Expand description
Represents a flex-direction attribute - default: Column
Variants§
Implementations§
Source§impl LayoutFlexDirection
impl LayoutFlexDirection
pub fn get_axis(&self) -> LayoutAxis
Sourcepub fn is_reverse(&self) -> bool
pub fn is_reverse(&self) -> bool
Returns true, if this direction is a column-reverse or row-reverse direction
Trait Implementations§
Source§impl Clone for LayoutFlexDirection
impl Clone for LayoutFlexDirection
Source§fn clone(&self) -> LayoutFlexDirection
fn clone(&self) -> LayoutFlexDirection
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 LayoutFlexDirection
impl Debug for LayoutFlexDirection
Source§impl Default for LayoutFlexDirection
impl Default for LayoutFlexDirection
Source§impl From<LayoutFlexDirection> for CssProperty
impl From<LayoutFlexDirection> for CssProperty
Source§fn from(e: LayoutFlexDirection) -> Self
fn from(e: LayoutFlexDirection) -> Self
Converts to this type from the input type.
Source§impl Hash for LayoutFlexDirection
impl Hash for LayoutFlexDirection
Source§impl Ord for LayoutFlexDirection
impl Ord for LayoutFlexDirection
Source§fn cmp(&self, other: &LayoutFlexDirection) -> Ordering
fn cmp(&self, other: &LayoutFlexDirection) -> 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 LayoutFlexDirection
impl PartialEq for LayoutFlexDirection
Source§impl PartialOrd for LayoutFlexDirection
impl PartialOrd for LayoutFlexDirection
Source§impl PrintAsCssValue for LayoutFlexDirection
impl PrintAsCssValue for LayoutFlexDirection
fn print_as_css_value(&self) -> String
impl Copy for LayoutFlexDirection
impl Eq for LayoutFlexDirection
impl StructuralPartialEq for LayoutFlexDirection
Auto Trait Implementations§
impl Freeze for LayoutFlexDirection
impl RefUnwindSafe for LayoutFlexDirection
impl Send for LayoutFlexDirection
impl Sync for LayoutFlexDirection
impl Unpin for LayoutFlexDirection
impl UnwindSafe for LayoutFlexDirection
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