pub enum LayoutDirection {
Row,
RowReverse,
Column,
ColumnReverse,
}
Expand description
Represents a flex-direction
attribute - default: Column
Variants§
Implementations§
Source§impl LayoutDirection
impl LayoutDirection
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 LayoutDirection
impl Clone for LayoutDirection
Source§fn clone(&self) -> LayoutDirection
fn clone(&self) -> LayoutDirection
Returns a copy 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 LayoutDirection
impl Debug for LayoutDirection
Source§impl Default for LayoutDirection
impl Default for LayoutDirection
Source§impl From<LayoutDirection> for CssProperty
impl From<LayoutDirection> for CssProperty
Source§fn from(e: LayoutDirection) -> Self
fn from(e: LayoutDirection) -> Self
Converts to this type from the input type.
Source§impl Hash for LayoutDirection
impl Hash for LayoutDirection
Source§impl Ord for LayoutDirection
impl Ord for LayoutDirection
Source§fn cmp(&self, other: &LayoutDirection) -> Ordering
fn cmp(&self, other: &LayoutDirection) -> 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 LayoutDirection
impl PartialEq for LayoutDirection
Source§impl PartialOrd for LayoutDirection
impl PartialOrd for LayoutDirection
impl Copy for LayoutDirection
impl Eq for LayoutDirection
impl StructuralPartialEq for LayoutDirection
Auto Trait Implementations§
impl Freeze for LayoutDirection
impl RefUnwindSafe for LayoutDirection
impl Send for LayoutDirection
impl Sync for LayoutDirection
impl Unpin for LayoutDirection
impl UnwindSafe for LayoutDirection
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)