pub struct GridTemplate(pub String);Expand description
Value for grid-template-rows / grid-template-columns. Lynx
accepts a sequence of track-sizing values; this struct stores
them as already-serialized track strings since the grammar is
rich enough that a typed model is impractical.
Tuple Fields§
§0: StringImplementations§
Source§impl GridTemplate
impl GridTemplate
Sourcepub fn tracks(tracks: impl IntoIterator<Item = impl Into<String>>) -> Self
pub fn tracks(tracks: impl IntoIterator<Item = impl Into<String>>) -> Self
Build from a list of track-sizing tokens. Each token is joined with a space.
Trait Implementations§
Source§impl Clone for GridTemplate
impl Clone for GridTemplate
Source§fn clone(&self) -> GridTemplate
fn clone(&self) -> GridTemplate
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 Debug for GridTemplate
impl Debug for GridTemplate
impl Eq for GridTemplate
Source§impl Hash for GridTemplate
impl Hash for GridTemplate
Source§impl PartialEq for GridTemplate
impl PartialEq for GridTemplate
Source§fn eq(&self, other: &GridTemplate) -> bool
fn eq(&self, other: &GridTemplate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GridTemplate
Auto Trait Implementations§
impl Freeze for GridTemplate
impl RefUnwindSafe for GridTemplate
impl Send for GridTemplate
impl Sync for GridTemplate
impl Unpin for GridTemplate
impl UnsafeUnpin for GridTemplate
impl UnwindSafe for GridTemplate
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