pub enum AlignContent {
Stretch,
Start,
Center,
End,
SpaceBetween,
SpaceAround,
SpaceEvenly,
}Expand description
How a wrapping container’s lines are distributed on the cross axis.
Not the same question as Align, which places each child within its line. This
one places the lines themselves, and it only has an answer when there is more than
one — that is, when the container wraps and has cross-axis room to spare.
Variants§
Stretch
The lines fill the cross axis between them. Flexbox’s default, and ours.
Start
Packed at the near edge, keeping their own heights.
Center
Packed at the middle.
End
Packed at the far edge.
SpaceBetween
The first and last lines touch the edges, the room shared between them.
SpaceAround
Equal space around each line: the outer gaps are half the inner ones.
SpaceEvenly
Equal space everywhere, the outer gaps included.
Trait Implementations§
Source§impl Clone for AlignContent
impl Clone for AlignContent
Source§fn clone(&self) -> AlignContent
fn clone(&self) -> AlignContent
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 AlignContent
Source§impl Debug for AlignContent
impl Debug for AlignContent
Source§impl Default for AlignContent
impl Default for AlignContent
Source§fn default() -> AlignContent
fn default() -> AlignContent
Returns the “default value” for a type. Read more
impl Eq for AlignContent
Source§impl PartialEq for AlignContent
impl PartialEq for AlignContent
impl StructuralPartialEq for AlignContent
Auto Trait Implementations§
impl Freeze for AlignContent
impl RefUnwindSafe for AlignContent
impl Send for AlignContent
impl Sync for AlignContent
impl Unpin for AlignContent
impl UnsafeUnpin for AlignContent
impl UnwindSafe for AlignContent
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