#[repr(u8)]pub enum AlignContentKeyword {
Normal = 0,
Start = 1,
End = 2,
FlexStart = 3,
FlexEnd = 4,
Center = 5,
Stretch = 6,
SpaceBetween = 7,
SpaceEvenly = 8,
SpaceAround = 9,
}Expand description
The position-keyword half of AlignContent (and its alias JustifyContent).
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: Stretch for flex and grid containers, Start
for block containers.
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.
FlexEnd = 4
Items are packed towards the flex-relative end of the axis.
Center = 5
Items are centered around the middle of the axis.
Stretch = 6
Items are stretched to fill the container.
SpaceBetween = 7
The first and last items are aligned flush with the edges of the container (no gap). The gap between items is distributed evenly.
SpaceEvenly = 8
The gap between the first and last items is exactly THE SAME as the gap between items. The gaps are distributed evenly.
SpaceAround = 9
The gap between the first and last items is exactly HALF the gap between items. The gaps are distributed evenly in proportion to these ratios.
Trait Implementations§
Source§impl Clone for AlignContentKeyword
impl Clone for AlignContentKeyword
impl Copy for AlignContentKeyword
Source§impl Debug for AlignContentKeyword
impl Debug for AlignContentKeyword
Source§impl Default for AlignContentKeyword
impl Default for AlignContentKeyword
Source§impl<'de> Deserialize<'de> for AlignContentKeyword
Available on crate feature serde only.
impl<'de> Deserialize<'de> for AlignContentKeyword
serde only.Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Eq for AlignContentKeyword
Source§impl PartialEq for AlignContentKeyword
impl PartialEq for AlignContentKeyword
Source§impl Serialize for AlignContentKeyword
Available on crate feature serde only.
impl Serialize for AlignContentKeyword
serde only.