[][src]Struct embedded_layout::layout::linear::Horizontal

pub struct Horizontal<Secondary, Spacing = Tight> where
    Secondary: SecondaryAlignment + VerticalAlignment,
    Spacing: ElementSpacing
{ /* fields omitted */ }

Horizontal layout direction

Implementations

impl<Secondary, Spacing> Horizontal<Secondary, Spacing> where
    Secondary: SecondaryAlignment + VerticalAlignment,
    Spacing: ElementSpacing
[src]

pub fn with_secondary_alignment<Sec: SecondaryAlignment + VerticalAlignment>(
    self,
    secondary: Sec
) -> Horizontal<Sec, Spacing>
[src]

Change secondary alignment

pub fn with_spacing<ElSpacing: ElementSpacing>(
    self,
    spacing: ElSpacing
) -> Horizontal<Secondary, ElSpacing>
[src]

Change element spacing

Trait Implementations

impl<Secondary: Clone, Spacing: Clone> Clone for Horizontal<Secondary, Spacing> where
    Secondary: SecondaryAlignment + VerticalAlignment,
    Spacing: ElementSpacing
[src]

impl<Secondary: Copy, Spacing: Copy> Copy for Horizontal<Secondary, Spacing> where
    Secondary: SecondaryAlignment + VerticalAlignment,
    Spacing: ElementSpacing
[src]

impl Default for Horizontal<Bottom, Tight>[src]

impl<Secondary, Spacing> Orientation for Horizontal<Secondary, Spacing> where
    Secondary: SecondaryAlignment + VerticalAlignment,
    Spacing: ElementSpacing
[src]

type Secondary = Secondary

Secondary alignment that will be applied to all the views

Auto Trait Implementations

impl<Secondary, Spacing> RefUnwindSafe for Horizontal<Secondary, Spacing> where
    Secondary: RefUnwindSafe,
    Spacing: RefUnwindSafe

impl<Secondary, Spacing> Send for Horizontal<Secondary, Spacing> where
    Secondary: Send,
    Spacing: Send

impl<Secondary, Spacing> Sync for Horizontal<Secondary, Spacing> where
    Secondary: Sync,
    Spacing: Sync

impl<Secondary, Spacing> Unpin for Horizontal<Secondary, Spacing> where
    Secondary: Unpin,
    Spacing: Unpin

impl<Secondary, Spacing> UnwindSafe for Horizontal<Secondary, Spacing> where
    Secondary: UnwindSafe,
    Spacing: UnwindSafe

Blanket Implementations

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> 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.