#[non_exhaustive]#[repr(u32)]pub enum FlexboxLayoutAlignContent {
Stretch = 0,
Start = 1,
End = 2,
Center = 3,
SpaceBetween = 4,
SpaceAround = 5,
SpaceEvenly = 6,
}Expand description
Controls the distribution of flex lines along the cross axis in a flex container.
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.
Stretch = 0
Lines are stretched to fill the container along the cross axis.
Start = 1
Lines are placed at the start of the cross axis.
End = 2
Lines are placed at the end of the cross axis.
Center = 3
Lines are centered along the cross axis.
SpaceBetween = 4
Equal gaps between lines, no gap at the edges.
SpaceAround = 5
Equal gaps around each line (half-size at edges).
SpaceEvenly = 6
Equal gaps between lines and at the edges.
Trait Implementations§
Source§impl Clone for FlexboxLayoutAlignContent
impl Clone for FlexboxLayoutAlignContent
Source§fn clone(&self) -> FlexboxLayoutAlignContent
fn clone(&self) -> FlexboxLayoutAlignContent
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 FlexboxLayoutAlignContent
Source§impl Debug for FlexboxLayoutAlignContent
impl Debug for FlexboxLayoutAlignContent
Source§impl Default for FlexboxLayoutAlignContent
impl Default for FlexboxLayoutAlignContent
Source§impl Display for FlexboxLayoutAlignContent
impl Display for FlexboxLayoutAlignContent
impl Eq for FlexboxLayoutAlignContent
Source§impl FromStr for FlexboxLayoutAlignContent
impl FromStr for FlexboxLayoutAlignContent
Source§impl Hash for FlexboxLayoutAlignContent
impl Hash for FlexboxLayoutAlignContent
Source§impl PartialEq for FlexboxLayoutAlignContent
impl PartialEq for FlexboxLayoutAlignContent
Source§fn eq(&self, other: &FlexboxLayoutAlignContent) -> bool
fn eq(&self, other: &FlexboxLayoutAlignContent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FlexboxLayoutAlignContent
Auto Trait Implementations§
impl Freeze for FlexboxLayoutAlignContent
impl RefUnwindSafe for FlexboxLayoutAlignContent
impl Send for FlexboxLayoutAlignContent
impl Sync for FlexboxLayoutAlignContent
impl Unpin for FlexboxLayoutAlignContent
impl UnsafeUnpin for FlexboxLayoutAlignContent
impl UnwindSafe for FlexboxLayoutAlignContent
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
impl<T> Brush for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.impl<T> ErasedDestructor for Twhere
T: 'static,
Converts the given value to a
SharedString.