pub enum JustifyContent {
Start,
Center,
End,
SpaceBetween,
SpaceAround,
SpaceEvenly,
}Expand description
Main-axis distribution of free space.
Variants§
Start
Pack items at the start.
Center
Centre items as a group.
End
Pack items at the end.
SpaceBetween
First item at start, last at end, equal gaps between.
SpaceAround
Equal space around each item (half-size gaps at the edges).
SpaceEvenly
Equal space between and around every item.
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 (const: unstable) · 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 PartialEq for JustifyContent
impl PartialEq for JustifyContent
Source§fn eq(&self, other: &JustifyContent) -> bool
fn eq(&self, other: &JustifyContent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for JustifyContent
impl Eq 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