Struct savory_elements::layout::flex::Flex[][src]

pub struct Flex<Msg> {
    pub id: Option<Id>,
    pub items: Vec<Item<Msg>>,
    pub direction: Option<Direction>,
    pub wrap: Option<Wrap>,
    pub justify_content: Option<JustifyContent>,
    pub align_items: Option<AlignItems>,
    pub align_content: Option<AlignContent>,
    pub gap: Option<Gap>,
    pub inline: bool,
}

Fields

id: Option<Id>items: Vec<Item<Msg>>direction: Option<Direction>wrap: Option<Wrap>justify_content: Option<JustifyContent>align_items: Option<AlignItems>align_content: Option<AlignContent>gap: Option<Gap>inline: bool

Implementations

impl<Msg> Flex<Msg>[src]

pub fn id(self, value: impl Into<Id>) -> Self[src]

pub fn and_items(
    self,
    set_value: impl FnOnce(Vec<Item<Msg>>) -> Vec<Item<Msg>>
) -> Self
[src]

pub fn items(self, value: impl Into<Vec<Item<Msg>>>) -> Self[src]

pub fn reversed_row(self) -> Self[src]

pub fn reversed_column(self) -> Self[src]

pub fn wrap(self) -> Self[src]

pub fn no_wrap(self) -> Self[src]

pub fn reversed_wrap(self) -> Self[src]

pub fn justify_content(self, value: impl Into<JustifyContent>) -> Self[src]

pub fn align_items(self, value: impl Into<AlignItems>) -> Self[src]

pub fn align_content(self, value: impl Into<AlignContent>) -> Self[src]

pub fn gap(self, value: impl Into<Gap>) -> Self[src]

pub fn inline(self) -> Self[src]

impl<Msg> Flex<Msg>[src]

pub fn column() -> Self[src]

pub fn row() -> Self[src]

pub fn item(item: impl Into<Item<Msg>>) -> Item<Msg>[src]

pub fn normal(self) -> Self[src]

pub fn stretch(self) -> Self[src]

pub fn center(self) -> Self[src]

pub fn start(self) -> Self[src]

pub fn end(self) -> Self[src]

pub fn space_between(self) -> Self[src]

pub fn space_around(self) -> Self[src]

pub fn space_evenly(self) -> Self[src]

Trait Implementations

impl<U, Msg> ExtendBuilder<U> for Flex<Msg> where
    U: Into<Item<Msg>>, 
[src]

impl<T, Msg> PushOwned<T> for Flex<Msg> where
    T: Into<Item<Msg>>, 
[src]

impl<Msg> View<Node<Msg>> for Flex<Msg>[src]

Auto Trait Implementations

impl<Msg> !RefUnwindSafe for Flex<Msg>

impl<Msg> !Send for Flex<Msg>

impl<Msg> !Sync for Flex<Msg>

impl<Msg> Unpin for Flex<Msg>

impl<Msg> !UnwindSafe for Flex<Msg>

Blanket Implementations

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
    T: Component + Float,
    D: AdaptFrom<S, Swp, Dwp, T>,
    Swp: WhitePoint,
    Dwp: WhitePoint
[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, 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>,