[][src]Struct seed_style_preview::Layout

pub struct Layout<A> where
    A: LayoutArea
{ pub areas: Vec<A>, pub layout: Vec<Vec<A>>, pub container_styles: Option<Style>, pub area_styles: HashMap<A, Vec<Style>>, }

Fields

areas: Vec<A>layout: Vec<Vec<A>>container_styles: Option<Style>area_styles: HashMap<A, Vec<Style>>

Implementations

impl<A> Layout<A> where
    A: LayoutArea
[src]

pub fn style(self, style: Style) -> Self[src]

pub fn area_style(self, area: A, style: Style) -> Self[src]

pub fn areas(layout_array: &[&[A]]) -> Self[src]

Trait Implementations

impl<A: Clone> Clone for Layout<A> where
    A: LayoutArea
[src]

impl<A: Default> Default for Layout<A> where
    A: LayoutArea
[src]

impl WithGridLayout for Layout<NoArea>[src]

Auto Trait Implementations

impl<A> !RefUnwindSafe for Layout<A>

impl<A> Send for Layout<A> where
    A: Send

impl<A> Sync for Layout<A> where
    A: Sync

impl<A> Unpin for Layout<A> where
    A: Unpin

impl<A> !UnwindSafe for Layout<A>

Blanket Implementations

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

impl<T> Any for T where
    T: Any
[src]

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

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

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

impl<T> CloneAny for T where
    T: Clone + Any
[src]

impl<T> Erased for T

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

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

impl<T> Sealed<T> for T where
    T: ?Sized

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,