[][src]Struct elvis_core::style::GridStyle

pub struct GridStyle {
    pub col: Option<GridAuto>,
    pub col_gap: Option<Unit>,
    pub flow: Option<GridFlow>,
    pub row: Option<GridAuto>,
    pub row_gap: Option<Unit>,
    pub template_col: Option<GridTemplate>,
    pub template_row: Option<GridTemplate>,
}

Grid Style

Fields

col: Option<GridAuto>

Grid column

col_gap: Option<Unit>

Grid column gap

flow: Option<GridFlow>

Grid flow

row: Option<GridAuto>

Grid row

row_gap: Option<Unit>

Grid row gap

template_col: Option<GridTemplate>

Grid template_column

template_row: Option<GridTemplate>

Grid template_row

Implementations

impl GridStyle[src]

pub fn new() -> GridStyle[src]

new GridStyle

pub fn col(self, v: impl Into<GridAuto>) -> Self[src]

Set col

pub fn col_gap(self, v: impl Into<Unit>) -> Self[src]

Set col_gap

pub fn flow(self, v: impl Into<GridFlow>) -> Self[src]

Set flow

pub fn row(self, v: impl Into<GridAuto>) -> Self[src]

Set row

pub fn row_gap(self, v: impl Into<Unit>) -> Self[src]

Set row_gap

pub fn template_col(self, v: impl Into<GridTemplate>) -> Self[src]

Set template_col

pub fn template_row(self, v: impl Into<GridTemplate>) -> Self[src]

Set template_row

Trait Implementations

impl Clone for GridStyle[src]

impl Default for GridStyle[src]

impl Into<Vec<Style>> for GridStyle[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> 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.