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>,
}Expand description
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§
Source§impl GridStyle
impl GridStyle
Sourcepub fn template_col(self, v: impl Into<GridTemplate>) -> Self
pub fn template_col(self, v: impl Into<GridTemplate>) -> Self
Set template_col
Sourcepub fn template_row(self, v: impl Into<GridTemplate>) -> Self
pub fn template_row(self, v: impl Into<GridTemplate>) -> Self
Set template_row
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GridStyle
impl RefUnwindSafe for GridStyle
impl Send for GridStyle
impl Sync for GridStyle
impl Unpin for GridStyle
impl UnwindSafe for GridStyle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more