pub struct GridTemplateRepetition<S>where
S: CheapCloneStr,{
pub count: RepetitionCount,
pub tracks: Vec<MinMax<MinTrackSizingFunction, MaxTrackSizingFunction>>,
pub line_names: Vec<Vec<S>>,
}Expand description
A typed representation of a repeat(..) in grid-template-* value
Fields§
§count: RepetitionCountThe number of the times the repeat is repeated
tracks: Vec<MinMax<MinTrackSizingFunction, MaxTrackSizingFunction>>The tracks to repeat
line_names: Vec<Vec<S>>The line names for the repeated tracks
Trait Implementations§
Source§impl<S> Clone for GridTemplateRepetition<S>where
S: Clone + CheapCloneStr,
impl<S> Clone for GridTemplateRepetition<S>where
S: Clone + CheapCloneStr,
Source§fn clone(&self) -> GridTemplateRepetition<S>
fn clone(&self) -> GridTemplateRepetition<S>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 for GridTemplateRepetition<S>where
S: Debug + CheapCloneStr,
impl<S> Debug for GridTemplateRepetition<S>where
S: Debug + CheapCloneStr,
Source§impl<S> GenericRepetition for &GridTemplateRepetition<S>where
S: CheapCloneStr,
impl<S> GenericRepetition for &GridTemplateRepetition<S>where
S: CheapCloneStr,
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
&GridTemplateRepetition<S>: 'a
type RepetitionTrackList<'a> = Copied<Iter<'a, MinMax<MinTrackSizingFunction, MaxTrackSizingFunction>>> where &GridTemplateRepetition<S>: '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
&GridTemplateRepetition<S>: 'a
type TemplateLineNames<'a> = Map<Iter<'a, Vec<S>>, fn(&Vec<S>) -> Iter<'_, S>> where &GridTemplateRepetition<S>: '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,
) -> <&GridTemplateRepetition<S> as GenericRepetition>::RepetitionTrackList<'_>
fn tracks( &self, ) -> <&GridTemplateRepetition<S> as GenericRepetition>::RepetitionTrackList<'_>
Get an iterator over the repeated tracks
Source§fn lines_names(
&self,
) -> <&GridTemplateRepetition<S> as GenericRepetition>::TemplateLineNames<'_>
fn lines_names( &self, ) -> <&GridTemplateRepetition<S> as GenericRepetition>::TemplateLineNames<'_>
Returns an iterator over the lines names
Source§impl<S> PartialEq for GridTemplateRepetition<S>where
S: PartialEq + CheapCloneStr,
impl<S> PartialEq for GridTemplateRepetition<S>where
S: PartialEq + CheapCloneStr,
Source§fn eq(&self, other: &GridTemplateRepetition<S>) -> bool
fn eq(&self, other: &GridTemplateRepetition<S>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<S> StructuralPartialEq for GridTemplateRepetition<S>where
S: CheapCloneStr,
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> UnsafeUnpin for GridTemplateRepetition<S>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more