pub enum GridTrackRepetition {
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 GridTrackRepetition
impl Clone for GridTrackRepetition
source§fn clone(&self) -> GridTrackRepetition
fn clone(&self) -> GridTrackRepetition
Returns a copy 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 GridTrackRepetition
impl Debug for GridTrackRepetition
source§impl PartialEq for GridTrackRepetition
impl PartialEq for GridTrackRepetition
source§impl<'a> TryFrom<&'a str> for GridTrackRepetition
impl<'a> TryFrom<&'a str> for GridTrackRepetition
source§impl TryFrom<u16> for GridTrackRepetition
impl TryFrom<u16> for GridTrackRepetition
source§type Error = Infallible
type Error = Infallible
The type returned in the event of a conversion error.
impl Copy for GridTrackRepetition
impl Eq for GridTrackRepetition
impl StructuralPartialEq for GridTrackRepetition
Auto Trait Implementations§
impl Freeze for GridTrackRepetition
impl RefUnwindSafe for GridTrackRepetition
impl Send for GridTrackRepetition
impl Sync for GridTrackRepetition
impl Unpin for GridTrackRepetition
impl UnwindSafe for GridTrackRepetition
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)