#[non_exhaustive]pub struct GridRepeatTrack {
pub size: GridTrackSize,
pub names: Vec<String>,
pub end_names: Option<Vec<String>>,
}Expand description
Represents a grid repeat track
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.size: GridTrackSizeThe size of the grid track
names: Vec<String>The names for the line preceding this track within the repeat() clause
end_names: Option<Vec<String>>The names for the final line after the last track within the repeat() clause Only set on the last track of the repeat fragment. For other tracks this is None.
Trait Implementations§
Source§impl Clone for GridRepeatTrack
impl Clone for GridRepeatTrack
Source§fn clone(&self) -> GridRepeatTrack
fn clone(&self) -> GridRepeatTrack
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 GridRepeatTrack
impl Debug for GridRepeatTrack
Source§impl<'i> FromCss<'i> for GridRepeatTrack
impl<'i> FromCss<'i> for GridRepeatTrack
Source§const VALID_TOKENS: &'static [CssToken]
const VALID_TOKENS: &'static [CssToken]
Returns the list of valid CSS tokens for this type.
Source§fn from_css(input: &mut Parser<'i, '_>) -> ParseResult<'i, Self>
fn from_css(input: &mut Parser<'i, '_>) -> ParseResult<'i, Self>
Parses the type from a
Parser instance.Source§fn from_str(source: &'i str) -> ParseResult<'i, Self>where
Self: Sized,
fn from_str(source: &'i str) -> ParseResult<'i, Self>where
Self: Sized,
Helper function to parse the type from a string.
Source§const EXPECT_MESSAGE: CssExpectedMessage = CssExpectedMessage::OneValue
const EXPECT_MESSAGE: CssExpectedMessage = CssExpectedMessage::OneValue
Message template used when building parse errors for this type.
Source§impl PartialEq for GridRepeatTrack
impl PartialEq for GridRepeatTrack
Source§fn eq(&self, other: &GridRepeatTrack) -> bool
fn eq(&self, other: &GridRepeatTrack) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GridRepeatTrack
Auto Trait Implementations§
impl Freeze for GridRepeatTrack
impl RefUnwindSafe for GridRepeatTrack
impl Send for GridRepeatTrack
impl Sync for GridRepeatTrack
impl Unpin for GridRepeatTrack
impl UnsafeUnpin for GridRepeatTrack
impl UnwindSafe for GridRepeatTrack
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