#[non_exhaustive]pub enum JustifyContent {
FlexStart,
FlexEnd,
Center,
SpaceBetween,
SpaceAround,
SpaceEvenly,
}
Expand description
Alignment of items in a flexbox along the main axis.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FlexStart
Flex items are packed against the start of the container.
FlexEnd
Flex items are packed against the end of the container.
Center
Flex items are packed in the center, with equal space to either side.
SpaceBetween
Flex items are packed with equal space between them.
SpaceAround
Flex items are packed with equal space around each item.
SpaceEvenly
Flex items are packed with equal space between all items (including the sides).
Trait Implementations§
Source§impl Clone for JustifyContent
impl Clone for JustifyContent
Source§fn clone(&self) -> JustifyContent
fn clone(&self) -> JustifyContent
Returns a copy 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§fn default() -> JustifyContent
fn default() -> JustifyContent
Returns the “default value” for a type. Read more
Source§impl Display for JustifyContent
impl Display for JustifyContent
Source§impl Hash for JustifyContent
impl Hash for JustifyContent
Source§impl PartialEq for JustifyContent
impl PartialEq for JustifyContent
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 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