pub struct GridTemplateAreas<CustomIdent: CheapCloneStr> {
pub areas: Vec<GridTemplateArea<CustomIdent>>,
pub row_count: u16,
pub column_count: u16,
}Expand description
Defines the value of the grid-template-areas property: the named areas plus the overall
size (in tracks) of the area template.
The template may be larger than the extents of the named areas due to unnamed (.) cells,
so the size is stored explicitly.
Fields§
§areas: Vec<GridTemplateArea<CustomIdent>>The named grid areas
row_count: u16The number of rows in the area template
column_count: u16The number of columns in the area template
Trait Implementations§
Source§impl<CustomIdent: Clone + CheapCloneStr> Clone for GridTemplateAreas<CustomIdent>
impl<CustomIdent: Clone + CheapCloneStr> Clone for GridTemplateAreas<CustomIdent>
Source§fn clone(&self) -> GridTemplateAreas<CustomIdent>
fn clone(&self) -> GridTemplateAreas<CustomIdent>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<CustomIdent: Debug + CheapCloneStr> Debug for GridTemplateAreas<CustomIdent>
impl<CustomIdent: Debug + CheapCloneStr> Debug for GridTemplateAreas<CustomIdent>
Source§impl<CustomIdent: PartialEq + CheapCloneStr> PartialEq for GridTemplateAreas<CustomIdent>
impl<CustomIdent: PartialEq + CheapCloneStr> PartialEq for GridTemplateAreas<CustomIdent>
Source§fn eq(&self, other: &GridTemplateAreas<CustomIdent>) -> bool
fn eq(&self, other: &GridTemplateAreas<CustomIdent>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<CustomIdent: CheapCloneStr> StructuralPartialEq for GridTemplateAreas<CustomIdent>
Auto Trait Implementations§
impl<CustomIdent> Freeze for GridTemplateAreas<CustomIdent>
impl<CustomIdent> RefUnwindSafe for GridTemplateAreas<CustomIdent>where
CustomIdent: RefUnwindSafe,
impl<CustomIdent> Send for GridTemplateAreas<CustomIdent>where
CustomIdent: Send,
impl<CustomIdent> Sync for GridTemplateAreas<CustomIdent>where
CustomIdent: Sync,
impl<CustomIdent> Unpin for GridTemplateAreas<CustomIdent>where
CustomIdent: Unpin,
impl<CustomIdent> UnsafeUnpin for GridTemplateAreas<CustomIdent>
impl<CustomIdent> UnwindSafe for GridTemplateAreas<CustomIdent>where
CustomIdent: UnwindSafe,
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