pub struct GridConfig<'a> {
pub template_rows: &'a [Sizing],
pub template_columns: &'a [Sizing],
pub row_gap: usize,
pub column_gap: usize,
pub fill_space: bool,
pub minimum: bool,
}
Expand description
Settings for layout_grid
Fields§
§template_rows: &'a [Sizing]
The size of the rows
template_columns: &'a [Sizing]
The size of the columns
row_gap: usize
The gap between rows
column_gap: usize
The gap between columns
fill_space: bool
If true
the grid will try to take up the maximum amount of space
minimum: bool
If true
the grid will use minimum as opposed to naturual sizing
Trait Implementations§
Source§impl<'a> Clone for GridConfig<'a>
impl<'a> Clone for GridConfig<'a>
Source§fn clone(&self) -> GridConfig<'a>
fn clone(&self) -> GridConfig<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for GridConfig<'a>
impl<'a> Debug for GridConfig<'a>
impl<'a> Copy for GridConfig<'a>
Auto Trait Implementations§
impl<'a> Freeze for GridConfig<'a>
impl<'a> RefUnwindSafe for GridConfig<'a>
impl<'a> Send for GridConfig<'a>
impl<'a> Sync for GridConfig<'a>
impl<'a> Unpin for GridConfig<'a>
impl<'a> UnwindSafe for GridConfig<'a>
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