#[repr(u8)]pub enum AlignItemsKeyword {
Normal = 0,
Start = 1,
End = 2,
FlexStart = 3,
FlexEnd = 4,
SelfStart = 5,
SelfEnd = 6,
Center = 7,
Baseline = 8,
Stretch = 9,
}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§
Normal = 0
The layout mode’s default alignment: usually Stretch, but Start in some cases.
Start = 1
Items are packed toward the start of the axis.
End = 2
Items are packed toward the end of the axis.
FlexStart = 3
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 = 4
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 = 5
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 = 6
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 = 7
Items are packed along the center of the cross axis.
Baseline = 8
Items are aligned such as their baselines align.
Stretch = 9
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 more