taffy::style

Type Alias JustifyItems

Source
pub type JustifyItems = AlignItems;
Expand description

Used to control how child nodes are aligned. Does not apply to Flexbox, and will be ignored if specified on a flex container For Grid it controls alignment in the inline axis

MDN

Aliased Type§

enum JustifyItems {
    Start,
    End,
    FlexStart,
    FlexEnd,
    Center,
    Baseline,
    Stretch,
}

Variants§

§

Start

Items are packed toward the start of the axis

§

End

Items are packed toward the end of the axis

§

FlexStart

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

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.

§

Center

Items are packed along the center of the cross axis

§

Baseline

Items are aligned such as their baselines align

§

Stretch

Stretch to fill the container

Trait Implementations

Source§

impl Clone for AlignItems

Source§

fn clone(&self) -> AlignItems

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AlignItems

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for AlignItems

Source§

fn eq(&self, other: &AlignItems) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for AlignItems

Source§

impl Eq for AlignItems

Source§

impl StructuralPartialEq for AlignItems