#[repr(u8)]pub enum AxisAlignment {
Start = 0,
Center = 1,
End = 2,
}Expand description
Describes how a Layout should align its children.
Variants§
Start = 0
Place content at the start.
Center = 1
Place content in the center.
End = 2
Place content at the end.
Trait Implementations§
Source§impl Clone for AxisAlignment
impl Clone for AxisAlignment
Source§fn clone(&self) -> AxisAlignment
fn clone(&self) -> AxisAlignment
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 AxisAlignment
impl Debug for AxisAlignment
Source§impl Default for AxisAlignment
impl Default for AxisAlignment
Source§fn default() -> AxisAlignment
fn default() -> AxisAlignment
Returns the “default value” for a type. Read more
Source§impl Ord for AxisAlignment
impl Ord for AxisAlignment
Source§fn cmp(&self, other: &AxisAlignment) -> Ordering
fn cmp(&self, other: &AxisAlignment) -> 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 AxisAlignment
impl PartialEq for AxisAlignment
Source§impl PartialOrd for AxisAlignment
impl PartialOrd for AxisAlignment
impl Copy for AxisAlignment
impl Eq for AxisAlignment
impl StructuralPartialEq for AxisAlignment
Auto Trait Implementations§
impl Freeze for AxisAlignment
impl RefUnwindSafe for AxisAlignment
impl Send for AxisAlignment
impl Sync for AxisAlignment
impl Unpin for AxisAlignment
impl UnwindSafe for AxisAlignment
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