pub enum JustifyContent {
Stretch,
FlexStart,
FlexEnd,
Center,
SpaceBetween,
SpaceAround,
SpaceEvenly,
Start,
End,
}Expand description
The justify-content keyword. Lynx does not support normal,
left, right, or the baseline* family.
Variants§
Stretch
stretch — distribute remaining space to flexible items.
FlexStart
flex-start — pack at the start of the main axis. Default.
FlexEnd
flex-end — pack at the end of the main axis.
Center
center — pack around the center of the main axis.
SpaceBetween
space-between — equal space between items.
SpaceAround
space-around — equal space around items.
SpaceEvenly
space-evenly — equal space between and around items.
Start
start — pack at the logical start (writing-mode aware).
End
end — pack at the logical end.
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 moreimpl Copy for JustifyContent
Source§impl Debug for JustifyContent
impl Debug for JustifyContent
impl Eq for JustifyContent
Source§impl Hash for JustifyContent
impl Hash 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 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