pub struct GridStyle {
pub columns: Vec<Track>,
pub rows: Vec<Track>,
pub column_gap: f32,
pub row_gap: f32,
pub auto_flow: GridFlow,
pub align_items: Align,
pub justify_items: Align,
}Fields§
§columns: Vec<Track>§rows: Vec<Track>§column_gap: f32§row_gap: f32§auto_flow: GridFlow§align_items: Align§justify_items: AlignImplementations§
Source§impl GridStyle
impl GridStyle
pub fn new(columns: impl IntoIterator<Item = Track>) -> Self
pub fn rows(self, rows: impl IntoIterator<Item = Track>) -> Self
pub fn gap(self, gap: f32) -> Self
pub fn column_gap(self, gap: f32) -> Self
pub fn row_gap(self, gap: f32) -> Self
pub fn auto_flow(self, flow: GridFlow) -> Self
pub fn column_flow(self) -> Self
pub fn align_items(self, align: Align) -> Self
pub fn justify_items(self, align: Align) -> Self
pub fn place_items(self, align: Align) -> Self
Trait Implementations§
impl StructuralPartialEq for GridStyle
Auto Trait Implementations§
impl Freeze for GridStyle
impl RefUnwindSafe for GridStyle
impl Send for GridStyle
impl Sync for GridStyle
impl Unpin for GridStyle
impl UnsafeUnpin 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