[][src]Enum polyhorn_ui::styles::Align

pub enum Align {
    FlexStart,
    Center,
    FlexEnd,
    Stretch,
    SpaceBetween,
    SpaceAround,
}

Controls how items are aligned along the main axis of a flexbox.

Variants

FlexStart

Items are aligned at the start of the cross axis.

Center

Items are aligned at the center along the main axis.

FlexEnd

Items are aligned at the end of the cross axis.

Stretch

Items are stretched between the start and end of the cross axis.

SpaceBetween

Items are spaced evenly between, the first item starts at the start of the cross axis and the last item ends at the end of the cross axis.

SpaceAround

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

Trait Implementations

impl Clone for Align[src]

impl Copy for Align[src]

impl Debug for Align[src]

impl Eq for Align[src]

impl FromStr for Align[src]

type Err = ParseError

The associated error which can be returned from parsing.

impl PartialEq<Align> for Align[src]

impl StructuralEq for Align[src]

impl StructuralPartialEq for Align[src]

Auto Trait Implementations

impl RefUnwindSafe for Align

impl Send for Align

impl Sync for Align

impl Unpin for Align

impl UnwindSafe for Align

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.