Struct embedded_layout::layout::linear::Horizontal [−][src]
pub struct Horizontal<Secondary, Spacing = Tight> where
Secondary: SecondaryAlignment + VerticalAlignment,
Spacing: ElementSpacing, { /* fields omitted */ }
Expand description
Horizontal layout direction
Implementations
impl<Secondary, Spacing> Horizontal<Secondary, Spacing> where
Secondary: SecondaryAlignment + VerticalAlignment,
Spacing: ElementSpacing,
impl<Secondary, Spacing> Horizontal<Secondary, Spacing> where
Secondary: SecondaryAlignment + VerticalAlignment,
Spacing: ElementSpacing, pub fn with_secondary_alignment<Sec: SecondaryAlignment + VerticalAlignment>(
self,
secondary: Sec
) -> Horizontal<Sec, Spacing>
pub fn with_secondary_alignment<Sec: SecondaryAlignment + VerticalAlignment>(
self,
secondary: Sec
) -> Horizontal<Sec, Spacing>Change secondary alignment
pub fn with_spacing<ElSpacing: ElementSpacing>(
self,
spacing: ElSpacing
) -> Horizontal<Secondary, ElSpacing>
pub fn with_spacing<ElSpacing: ElementSpacing>(
self,
spacing: ElSpacing
) -> Horizontal<Secondary, ElSpacing>Change element spacing
Trait Implementations
impl<Secondary: Clone, Spacing: Clone> Clone for Horizontal<Secondary, Spacing> where
Secondary: SecondaryAlignment + VerticalAlignment,
Spacing: ElementSpacing,
impl<Secondary: Clone, Spacing: Clone> Clone for Horizontal<Secondary, Spacing> where
Secondary: SecondaryAlignment + VerticalAlignment,
Spacing: ElementSpacing, impl<Secondary, Spacing> Orientation for Horizontal<Secondary, Spacing> where
Secondary: SecondaryAlignment + VerticalAlignment,
Spacing: ElementSpacing,
impl<Secondary, Spacing> Orientation for Horizontal<Secondary, Spacing> where
Secondary: SecondaryAlignment + VerticalAlignment,
Spacing: ElementSpacing, type Secondary = Secondary
type Secondary = SecondarySecondary alignment that will be applied to all the views
Destructure Size into (primary_size, secondary_size)
Create a Size from primary and secondary size values
impl<Secondary: Copy, Spacing: Copy> Copy for Horizontal<Secondary, Spacing> where
Secondary: SecondaryAlignment + VerticalAlignment,
Spacing: ElementSpacing, 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
Mutably borrows from an owned value. Read more
Casts the value.
Casts the value.
Casts the value.
Casts the value.
Casts the value.