pub enum LayoutAxis {
Horizontal,
Vertical,
}
Expand description
Same as the LayoutDirection
, but without the -reverse
properties, used in the layout solver,
makes decisions based on horizontal / vertical direction easier to write.
Use LayoutDirection::get_axis()
to get the axis for a given LayoutDirection
.
Variants§
Trait Implementations§
Source§impl Clone for LayoutAxis
impl Clone for LayoutAxis
Source§fn clone(&self) -> LayoutAxis
fn clone(&self) -> LayoutAxis
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 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
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
)