pub enum GenericGridTemplateComponent<S, Repetition>where
S: CheapCloneStr,
Repetition: GenericRepetition<CustomIdent = S>,{
Single(TrackSizingFunction),
Repeat(Repetition),
}
Expand description
A type representing a component in a grid-template-*
defintion where the type
representing repeat()
s is generic
Variants§
Implementations§
Source§impl<S, Repetition> GenericGridTemplateComponent<S, Repetition>where
S: CheapCloneStr,
Repetition: GenericRepetition<CustomIdent = S>,
impl<S, Repetition> GenericGridTemplateComponent<S, Repetition>where
S: CheapCloneStr,
Repetition: GenericRepetition<CustomIdent = S>,
Sourcepub fn is_auto_repetition(&self) -> bool
pub fn is_auto_repetition(&self) -> bool
Whether the track definition is a auto-repeated fragment
Trait Implementations§
Source§impl<S, Repetition> Clone for GenericGridTemplateComponent<S, Repetition>
impl<S, Repetition> Clone for GenericGridTemplateComponent<S, Repetition>
Source§fn clone(&self) -> GenericGridTemplateComponent<S, Repetition>
fn clone(&self) -> GenericGridTemplateComponent<S, Repetition>
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 moreimpl<S, Repetition> Copy for GenericGridTemplateComponent<S, Repetition>
Auto Trait Implementations§
impl<S, Repetition> Freeze for GenericGridTemplateComponent<S, Repetition>where
Repetition: Freeze,
impl<S, Repetition> RefUnwindSafe for GenericGridTemplateComponent<S, Repetition>where
Repetition: RefUnwindSafe,
impl<S, Repetition> !Send for GenericGridTemplateComponent<S, Repetition>
impl<S, Repetition> !Sync for GenericGridTemplateComponent<S, Repetition>
impl<S, Repetition> Unpin for GenericGridTemplateComponent<S, Repetition>where
Repetition: Unpin,
impl<S, Repetition> UnwindSafe for GenericGridTemplateComponent<S, Repetition>where
Repetition: UnwindSafe,
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