#[non_exhaustive]pub enum JustifyContent {
Show 13 variants
Center,
End,
FlexEnd,
FlexStart,
Left,
Normal,
Right,
SpaceAround,
SpaceBetween,
SpaceEvenly,
Start,
Stretch,
Raw(Raw),
}Expand description
A value of justify-content.
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.
Center
center.
End
end.
FlexEnd
flex-end.
FlexStart
flex-start.
Left
left.
Normal
normal.
Right
right.
SpaceAround
space-around.
SpaceBetween
space-between.
SpaceEvenly
space-evenly.
Start
start.
Stretch
stretch.
Raw(Raw)
Any other value, passed through unchecked.
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 Display for JustifyContent
impl Display for JustifyContent
Source§impl From<Raw> for JustifyContent
impl From<Raw> for JustifyContent
Source§impl PartialEq for JustifyContent
impl PartialEq 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