pub enum AlignItems {
Stretch,
Start,
Center,
End,
}Expand description
Cross-axis alignment inside a flex or grid container.
Variants§
Stretch
Stretch items to fill cross-axis extent.
Start
Align items at cross-axis start.
Center
Center items along cross axis.
End
Align items at cross-axis end.
Trait Implementations§
Source§impl Clone for AlignItems
impl Clone for AlignItems
impl Copy for AlignItems
Source§impl Debug for AlignItems
impl Debug for AlignItems
Source§impl Default for AlignItems
impl Default for AlignItems
impl Eq for AlignItems
Source§impl Hash for AlignItems
impl Hash for AlignItems
Source§impl Ord for AlignItems
impl Ord for AlignItems
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for AlignItems
impl PartialEq for AlignItems
Source§impl PartialOrd for AlignItems
impl PartialOrd for AlignItems
impl StructuralPartialEq for AlignItems
Auto Trait Implementations§
impl Forget for AlignItems
impl Freeze for AlignItems
impl Move for AlignItems
impl RefUnwindSafe for AlignItems
impl Send for AlignItems
impl Sync for AlignItems
impl Unpin for AlignItems
impl UnsafeUnpin for AlignItems
impl UnwindSafe for AlignItems
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