pub enum Justify {
Start,
Center,
End,
SpaceBetween,
SpaceAround,
SpaceEvenly,
}Expand description
How children are distributed along the main axis.
Variants§
Start
Packed at the start of the main axis.
Center
Packed at the middle.
End
Packed at the end of the main axis.
SpaceBetween
The first and last children touch the edges, the room shared between them.
SpaceAround
Equal space around each child: the outer gaps are half the inner ones.
SpaceEvenly
Equal space everywhere, the outer gaps included: with SpaceAround the end
gaps are half the inner ones, which reads as a mistake when the row is the only
thing on the line.
Trait Implementations§
impl Copy for Justify
impl StructuralPartialEq for Justify
Auto Trait Implementations§
impl Freeze for Justify
impl RefUnwindSafe for Justify
impl Send for Justify
impl Sync for Justify
impl Unpin for Justify
impl UnsafeUnpin for Justify
impl UnwindSafe for Justify
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