[][src]Enum polyhorn_ui::styles::Justify

pub enum Justify {
    FlexStart,
    Center,
    FlexEnd,
    SpaceBetween,
    SpaceAround,
    SpaceEvenly,
}

Controls how content is justified along the cross axis of a flexbox.

Variants

FlexStart

Content is justified at the start of the main axis.

Center

Content is justified at the center along the cross axis.

FlexEnd

Content is justified at the end of the main axis.

SpaceBetween

Content is spaced evenly between, the first content starts at the start of the main axis and the last content ends at the end of the main axis.

SpaceAround

Items are spaced evenly around, the first content starts after the start of the main axis and the last content ends before the end of the main axis.

SpaceEvenly

Items are evenly spaced: the space between items is equal to the space between the first and last item and both ends of the main axis respectively.

Trait Implementations

impl Clone for Justify[src]

impl Copy for Justify[src]

impl Debug for Justify[src]

impl Eq for Justify[src]

impl FromStr for Justify[src]

type Err = ParseError

The associated error which can be returned from parsing.

impl PartialEq<Justify> for Justify[src]

impl StructuralEq for Justify[src]

impl StructuralPartialEq for Justify[src]

Auto Trait Implementations

impl RefUnwindSafe for Justify

impl Send for Justify

impl Sync for Justify

impl Unpin for Justify

impl UnwindSafe for Justify

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    D: AdaptFrom<S, Swp, Dwp, T>,
    Dwp: WhitePoint,
    Swp: WhitePoint,
    T: Component + Float
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T, U> ConvertInto<U> for T where
    U: ConvertFrom<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.