[−][src]Struct elvis_core::style::GridStyle
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
impl RefUnwindSafe for GridStyle
impl Send for GridStyle
impl Sync for GridStyle
impl Unpin for GridStyle
impl UnwindSafe for GridStyle
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,