#[repr(C)]pub enum LayoutAxis {
Horizontal = 0,
Vertical = 1,
}
Expand description
Same as the LayoutFlexDirection
, but without the -reverse
properties, used in the layout
solver, makes decisions based on horizontal / vertical direction easier to write.
Use LayoutFlexDirection::get_axis()
to get the axis for a given LayoutFlexDirection
.
Variants§
Trait Implementations§
Source§impl Clone for LayoutAxis
impl Clone for LayoutAxis
Source§fn clone(&self) -> LayoutAxis
fn clone(&self) -> LayoutAxis
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 LayoutAxis
impl Debug for LayoutAxis
Source§impl Hash for LayoutAxis
impl Hash for LayoutAxis
Source§impl Ord for LayoutAxis
impl Ord for LayoutAxis
Source§fn cmp(&self, other: &LayoutAxis) -> Ordering
fn cmp(&self, other: &LayoutAxis) -> 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 LayoutAxis
impl PartialEq for LayoutAxis
Source§impl PartialOrd for LayoutAxis
impl PartialOrd for LayoutAxis
impl Copy for LayoutAxis
impl Eq for LayoutAxis
impl StructuralPartialEq for LayoutAxis
Auto Trait Implementations§
impl Freeze for LayoutAxis
impl RefUnwindSafe for LayoutAxis
impl Send for LayoutAxis
impl Sync for LayoutAxis
impl Unpin for LayoutAxis
impl UnwindSafe for LayoutAxis
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