pub enum CrossAxisAlignment {
Start,
Center,
End,
}Expand description
Cross-axis alignment for flex layouts. This is axis-agnostic and gets interpreted based on the flex axis.
Variants§
Start
Align to the start of the cross axis (Top for Row, Start for Column)
Center
Align to the center of the cross axis
End
Align to the end of the cross axis (Bottom for Row, End for Column)
Trait Implementations§
Source§impl Clone for CrossAxisAlignment
impl Clone for CrossAxisAlignment
Source§fn clone(&self) -> CrossAxisAlignment
fn clone(&self) -> CrossAxisAlignment
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 CrossAxisAlignment
impl Debug for CrossAxisAlignment
Source§impl From<HorizontalAlignment> for CrossAxisAlignment
impl From<HorizontalAlignment> for CrossAxisAlignment
Source§fn from(alignment: HorizontalAlignment) -> Self
fn from(alignment: HorizontalAlignment) -> Self
Converts to this type from the input type.
Source§impl From<VerticalAlignment> for CrossAxisAlignment
impl From<VerticalAlignment> for CrossAxisAlignment
Source§fn from(alignment: VerticalAlignment) -> Self
fn from(alignment: VerticalAlignment) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CrossAxisAlignment
impl PartialEq for CrossAxisAlignment
impl Copy for CrossAxisAlignment
impl StructuralPartialEq for CrossAxisAlignment
Auto Trait Implementations§
impl Freeze for CrossAxisAlignment
impl RefUnwindSafe for CrossAxisAlignment
impl Send for CrossAxisAlignment
impl Sync for CrossAxisAlignment
impl Unpin for CrossAxisAlignment
impl UnwindSafe for CrossAxisAlignment
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