#[non_exhaustive]pub enum GridRepetitionCount {
Keyword(GridRepetitionKeyword),
Count(u16),
}Expand description
Represents a grid track repetition pattern
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Keyword(GridRepetitionKeyword)
Keywords for auto-fill and auto-fit
Count(u16)
Specifies an exact number of track repetitions
Trait Implementations§
Source§impl Clone for GridRepetitionCount
impl Clone for GridRepetitionCount
Source§fn clone(&self) -> GridRepetitionCount
fn clone(&self) -> GridRepetitionCount
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 moreimpl Copy for GridRepetitionCount
Source§impl Debug for GridRepetitionCount
impl Debug for GridRepetitionCount
Source§impl From<GridRepetitionCount> for RepetitionCount
impl From<GridRepetitionCount> for RepetitionCount
Source§fn from(repetition: GridRepetitionCount) -> Self
fn from(repetition: GridRepetitionCount) -> Self
Converts to this type from the input type.
Source§impl<'i> FromCss<'i> for GridRepetitionCount
impl<'i> FromCss<'i> for GridRepetitionCount
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 GridRepetitionCount
impl PartialEq for GridRepetitionCount
Source§fn eq(&self, other: &GridRepetitionCount) -> bool
fn eq(&self, other: &GridRepetitionCount) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for GridRepetitionCount
Auto Trait Implementations§
impl Freeze for GridRepetitionCount
impl RefUnwindSafe for GridRepetitionCount
impl Send for GridRepetitionCount
impl Sync for GridRepetitionCount
impl Unpin for GridRepetitionCount
impl UnsafeUnpin for GridRepetitionCount
impl UnwindSafe for GridRepetitionCount
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