pub struct GridLayout {
pub columns: String,
pub rows: Option<String>,
pub gap: Option<String>,
pub areas: Option<Vec<GridArea>>,
}Expand description
CSS Grid layout configuration.
Fields§
§columns: StringColumn definition (e.g., “12”, “1fr 2fr”, “repeat(3, 1fr)”).
rows: Option<String>Row definition (e.g., “auto 1fr auto”).
gap: Option<String>Gap between grid cells (e.g., “10px”).
areas: Option<Vec<GridArea>>Named grid areas.
Implementations§
Source§impl GridLayout
impl GridLayout
Sourcepub fn with_areas(self, areas: Vec<GridArea>) -> Self
pub fn with_areas(self, areas: Vec<GridArea>) -> Self
Set named grid areas.
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 moreSource§impl Debug for GridLayout
impl Debug for GridLayout
Source§impl<'de> Deserialize<'de> for GridLayout
impl<'de> Deserialize<'de> for GridLayout
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GridLayout
impl PartialEq for GridLayout
Source§impl Serialize for GridLayout
impl Serialize for GridLayout
impl StructuralPartialEq for GridLayout
Auto 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