pub enum AlignContent {
Start,
Center,
End,
SpaceBetween,
SpaceAround,
SpaceEvenly,
Stretch,
}Expand description
Distribution of multiple lines along the cross axis (analogous to
justify-content but for lines, not items). Only applies when
wrap != NoWrap and there is more than one line.
Variants§
Start
Lines packed at the cross-axis start.
Center
Lines centred on the cross axis.
End
Lines packed at the cross-axis end.
SpaceBetween
First line at start, last at end, equal gaps between.
SpaceAround
Equal space around each line (half-size gaps at the edges).
SpaceEvenly
Equal space between and around every line.
Stretch
Lines stretched to fill the cross axis equally.
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 moreSource§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
Source§impl PartialEq for AlignContent
impl PartialEq for AlignContent
Source§fn eq(&self, other: &AlignContent) -> bool
fn eq(&self, other: &AlignContent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AlignContent
impl Eq 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