#[non_exhaustive]pub enum AlignContent {
FlexStart,
FlexEnd,
Center,
Stretch,
SpaceBetween,
SpaceAround,
}
Expand description
Alignment of the main axes in a flexbox.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FlexStart
Align content to the start of the container.
FlexEnd
Align content to the end of the container.
Center
Align content to the center of the container.
Stretch
Stretch content along the cross axis.
SpaceBetween
Align main axis with an equal amount of space between them.
SpaceAround
Align main axis with an equal of margin per axis.
Trait Implementations§
Source§impl Clone for AlignContent
impl Clone for AlignContent
Source§fn clone(&self) -> AlignContent
fn clone(&self) -> AlignContent
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 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 Display for AlignContent
impl Display for AlignContent
Source§impl Hash for AlignContent
impl Hash for AlignContent
Source§impl PartialEq for AlignContent
impl PartialEq for AlignContent
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 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