pub enum RepetitionCount {
AutoFill,
AutoFit,
Count(u16),
}
Expand description
The first argument to a repeated track definition. This type represents the type of automatic repetition to perform.
See https://www.w3.org/TR/css-grid-1/#auto-repeat for an explanation of how auto-repeated track definitions work and the difference between AutoFit and AutoFill.
Variants§
AutoFill
Auto-repeating tracks should be generated to fit the container See: https://developer.mozilla.org/en-US/docs/Web/CSS/repeat#auto-fill
AutoFit
Auto-repeating tracks should be generated to fit the container See: https://developer.mozilla.org/en-US/docs/Web/CSS/repeat#auto-fit
Count(u16)
The specified tracks should be repeated exacts N times
Trait Implementations§
Source§impl Clone for RepetitionCount
impl Clone for RepetitionCount
Source§fn clone(&self) -> RepetitionCount
fn clone(&self) -> RepetitionCount
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 RepetitionCount
impl Debug for RepetitionCount
Source§impl From<u16> for RepetitionCount
impl From<u16> for RepetitionCount
Source§impl PartialEq for RepetitionCount
impl PartialEq for RepetitionCount
Source§impl TryFrom<&str> for RepetitionCount
impl TryFrom<&str> for RepetitionCount
Source§type Error = InvalidStringRepetitionValue
type Error = InvalidStringRepetitionValue
The type returned in the event of a conversion error.
impl Copy for RepetitionCount
impl Eq for RepetitionCount
impl StructuralPartialEq for RepetitionCount
Auto Trait Implementations§
impl Freeze for RepetitionCount
impl RefUnwindSafe for RepetitionCount
impl Send for RepetitionCount
impl Sync for RepetitionCount
impl Unpin for RepetitionCount
impl UnwindSafe for RepetitionCount
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