[][src]Enum elvis::widgets::values::layouts::GridFlow

pub enum GridFlow {
    Column,
    Row,
    Dense,
    ColumnDense,
    RowDense,
    Inherit,
    Initial,
    Unset,
}

Manage Grid direction

Row

Items are placed by filling each row in turn, adding new rows as necessary. If neither row nor column is provided, row is assumed.

Column

Items are placed by filling each column in turn, adding new columns as necessary.

Dense

dense" packing algorithm attempts to fill in holes earlier in the grid, if smaller items come up later. This may cause items to appear out-of-order, when doing so would fill in holes left by larger items.

If it is omitted, a "sparse" algorithm is used, where the placement algorithm only ever moves "forward" in the grid when placing items, never backtracking to fill holes. This ensures that all of the auto-placed items appear "in order", even if this leaves holes that could have been filled by later items.

Variants

Column

Grid Column

Row

Grid Row

Dense

Grid deesen

ColumnDense

Grid column desen

RowDense

Grid row desen

Inherit

Inherit the style of parent

Initial

Use initial grid

Unset

Unset the flow

Trait Implementations

impl Default for GridFlow[src]

impl Serde<GridFlow, String, Error> for GridFlow[src]

Auto Trait Implementations

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