pub enum JustifyContent {
Start,
Center,
End,
SpaceBetween,
SpaceAround,
SpaceEvenly,
}Expand description
Main-axis distribution of flex children.
§Examples
use ailloli_ui_core::style::JustifyContent;
assert_eq!(JustifyContent::default(), JustifyContent::Start);Variants§
Start
Pack children at the main-axis origin; this is default.
Center
Pack children as a centered group.
End
Pack children against the far main-axis edge.
SpaceBetween
Distribute free space only between adjacent children.
SpaceAround
Distribute equal space around each child, yielding half-size outer gaps.
SpaceEvenly
Distribute equal free space between children and both outer edges.
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 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