pub struct GridTemplateRepetition<S: CheapCloneStr> {
pub count: RepetitionCount,
pub tracks: Vec<TrackSizingFunction>,
pub line_names: Vec<Vec<S>>,
}
Expand description
A typed representation of a repeat(..)
in grid-template-*
value
Fields§
§count: RepetitionCount
The number of the times the repeat is repeated
tracks: Vec<TrackSizingFunction>
The tracks to repeat
line_names: Vec<Vec<S>>
The line names for the repeated tracks
Trait Implementations§
Source§impl<S: Clone + CheapCloneStr> Clone for GridTemplateRepetition<S>
impl<S: Clone + CheapCloneStr> Clone for GridTemplateRepetition<S>
Source§fn clone(&self) -> GridTemplateRepetition<S>
fn clone(&self) -> GridTemplateRepetition<S>
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<S: Debug + CheapCloneStr> Debug for GridTemplateRepetition<S>
impl<S: Debug + CheapCloneStr> Debug for GridTemplateRepetition<S>
Source§impl<S: CheapCloneStr> GenericRepetition for &GridTemplateRepetition<S>
impl<S: CheapCloneStr> GenericRepetition for &GridTemplateRepetition<S>
Source§type CustomIdent = S
type CustomIdent = S
The type that represents
<custom-ident>
s (for named lines)Source§type RepetitionTrackList<'a> = Copied<Iter<'a, MinMax<MinTrackSizingFunction, MaxTrackSizingFunction>>>
where
Self: 'a
type RepetitionTrackList<'a> = Copied<Iter<'a, MinMax<MinTrackSizingFunction, MaxTrackSizingFunction>>> where Self: 'a
The type which represents an iterator over the list of repeated tracks
Source§type TemplateLineNames<'a> = Map<Iter<'a, Vec<S>>, fn(&Vec<S>) -> Iter<'_, S>>
where
Self: 'a
type TemplateLineNames<'a> = Map<Iter<'a, Vec<S>>, fn(&Vec<S>) -> Iter<'_, S>> where Self: 'a
A nested iterator of line names (nested because each line may have multiple associated names)
Source§fn count(&self) -> RepetitionCount
fn count(&self) -> RepetitionCount
The repetition count (integer, auto-fill, or auto-fit)
Source§fn track_count(&self) -> u16
fn track_count(&self) -> u16
Returns the number of repeated tracks
Source§fn tracks(&self) -> Self::RepetitionTrackList<'_>
fn tracks(&self) -> Self::RepetitionTrackList<'_>
Get an iterator over the repeated tracks
Source§fn lines_names(&self) -> Self::TemplateLineNames<'_>
fn lines_names(&self) -> Self::TemplateLineNames<'_>
Returns an iterator over the lines names
Source§impl<S: PartialEq + CheapCloneStr> PartialEq for GridTemplateRepetition<S>
impl<S: PartialEq + CheapCloneStr> PartialEq for GridTemplateRepetition<S>
impl<S: CheapCloneStr> StructuralPartialEq for GridTemplateRepetition<S>
Auto Trait Implementations§
impl<S> Freeze for GridTemplateRepetition<S>
impl<S> RefUnwindSafe for GridTemplateRepetition<S>where
S: RefUnwindSafe,
impl<S> !Send for GridTemplateRepetition<S>
impl<S> !Sync for GridTemplateRepetition<S>
impl<S> Unpin for GridTemplateRepetition<S>where
S: Unpin,
impl<S> UnwindSafe for GridTemplateRepetition<S>where
S: 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