Enum taffy::style::GridTrackRepetition
source · 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§fn eq(&self, other: &GridTrackRepetition) -> bool
fn eq(&self, other: &GridTrackRepetition) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
§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 StructuralEq for GridTrackRepetition
impl StructuralPartialEq for GridTrackRepetition
Auto Trait Implementations§
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