#[repr(u8)]pub enum AlignItemsKeyword {
Start = 0,
End = 1,
FlexStart = 2,
FlexEnd = 3,
SelfStart = 4,
SelfEnd = 5,
Center = 6,
Baseline = 7,
Stretch = 8,
}Expand description
The position-keyword half of AlignItems (and its aliases AlignSelf,
JustifyItems, JustifySelf).
Compute paths match on this enum directly so every match is exhaustive and
requires no Safe* siblings.
Variants§
Start = 0
Items are packed toward the start of the axis.
End = 1
Items are packed toward the end of the axis.
FlexStart = 2
Items are packed towards the flex-relative start of the axis.
For flex containers with flex_direction RowReverse or ColumnReverse this is equivalent to End. In all other cases it is equivalent to Start.
FlexEnd = 3
Items are packed towards the flex-relative end of the axis.
For flex containers with flex_direction RowReverse or ColumnReverse this is equivalent to Start. In all other cases it is equivalent to End.
SelfStart = 4
Items are packed toward the start of the axis as determined by the item’s own writing mode/direction (rather than the container’s).
Equivalent to Start when the item’s direction matches the container’s, and
to End when they differ (in the inline axis).
SelfEnd = 5
Items are packed toward the end of the axis as determined by the item’s own writing mode/direction (rather than the container’s).
Equivalent to End when the item’s direction matches the container’s, and
to Start when they differ (in the inline axis).
Center = 6
Items are packed along the center of the cross axis.
Baseline = 7
Items are aligned such as their baselines align.
Stretch = 8
Stretch to fill the container.
Trait Implementations§
Source§impl Clone for AlignItemsKeyword
impl Clone for AlignItemsKeyword
Source§fn clone(&self) -> AlignItemsKeyword
fn clone(&self) -> AlignItemsKeyword
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AlignItemsKeyword
impl Debug for AlignItemsKeyword
Source§impl PartialEq for AlignItemsKeyword
impl PartialEq for AlignItemsKeyword
Source§fn eq(&self, other: &AlignItemsKeyword) -> bool
fn eq(&self, other: &AlignItemsKeyword) -> bool
self and other values to be equal, and is used by ==.