pub enum JustifyContent {
Start,
End,
Center,
SpaceBetween,
SpaceAround,
SpaceEvenly,
}Expand description
How children are distributed along the main axis of a flex container.
Equivalent to the CSS justify-content property.
Defaults to Start.
Variants§
Start
Pack children toward the start of the main axis.
End
Pack children toward the end of the main axis.
Center
Center children along the main axis.
SpaceBetween
Distribute children so the first is at the start, the last at the end, and equal space between each pair.
SpaceAround
Distribute children with equal space around each child (half-size spaces on the edges).
SpaceEvenly
Distribute children with exactly equal space between and around them.
Trait Implementations§
Source§impl Clone for JustifyContent
impl Clone for JustifyContent
Source§fn clone(&self) -> JustifyContent
fn clone(&self) -> JustifyContent
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 JustifyContent
impl Debug for JustifyContent
Source§impl Default for JustifyContent
impl Default for JustifyContent
Source§impl<'de> Deserialize<'de> for JustifyContent
impl<'de> Deserialize<'de> for JustifyContent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for JustifyContent
impl Hash for JustifyContent
Source§impl PartialEq for JustifyContent
impl PartialEq for JustifyContent
Source§impl Serialize for JustifyContent
impl Serialize for JustifyContent
impl Copy for JustifyContent
impl StructuralPartialEq for JustifyContent
Auto Trait Implementations§
impl Freeze 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