pub enum JustifyContent {
Start,
Center,
End,
SpaceBetween,
SpaceAround,
SpaceEvenly,
}Expand description
Main-axis alignment inside a flex or grid container.
Variants§
Start
Pack items at the start of the main axis.
Center
Center items along the main axis.
End
Pack items at the end of the main axis.
SpaceBetween
Distribute space evenly between items.
SpaceAround
Distribute space around each item.
SpaceEvenly
Distribute equal space between items and edges.
Trait Implementations§
Source§impl Clone for JustifyContent
impl Clone for JustifyContent
impl Copy for JustifyContent
Source§impl Debug for JustifyContent
impl Debug for JustifyContent
Source§impl Default for JustifyContent
impl Default for JustifyContent
impl Eq for JustifyContent
Source§impl Hash for JustifyContent
impl Hash for JustifyContent
Source§impl Ord for JustifyContent
impl Ord for JustifyContent
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 JustifyContent
impl PartialEq for JustifyContent
Source§impl PartialOrd for JustifyContent
impl PartialOrd for JustifyContent
impl StructuralPartialEq for JustifyContent
Auto Trait Implementations§
impl Forget for JustifyContent
impl Freeze for JustifyContent
impl Move for JustifyContent
impl RefUnwindSafe for JustifyContent
impl Send for JustifyContent
impl Sync for JustifyContent
impl Unpin for JustifyContent
impl UnsafeUnpin for JustifyContent
impl UnwindSafe for JustifyContent
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