pub struct GridLayout {
pub columns: Vec<Track>,
pub rows: Vec<Track>,
pub col_gap: f32,
pub row_gap: f32,
pub padding: f32,
pub auto_fill: bool,
pub auto_fit: bool,
pub auto_col_w: f32,
}Expand description
CSS-like grid layout.
Fields§
§columns: Vec<Track>§rows: Vec<Track>§col_gap: f32§row_gap: f32§padding: f32§auto_fill: bool§auto_fit: bool§auto_col_w: f32Implementations§
Trait Implementations§
Source§impl Clone for GridLayout
impl Clone for GridLayout
Source§fn clone(&self) -> GridLayout
fn clone(&self) -> GridLayout
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 moreAuto Trait Implementations§
impl Freeze for GridLayout
impl RefUnwindSafe for GridLayout
impl Send for GridLayout
impl Sync for GridLayout
impl Unpin for GridLayout
impl UnsafeUnpin for GridLayout
impl UnwindSafe for GridLayout
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