#[repr(C)]pub struct GenericTrackRepeat<L, I> {
pub count: RepeatCount<I>,
pub line_names: OwnedSlice<OwnedSlice<CustomIdent>>,
pub track_sizes: OwnedSlice<GenericTrackSize<L>>,
}
Expand description
The structure containing <line-names>
and <track-size>
values.
Fields§
§count: RepeatCount<I>
The number of times for the value to be repeated (could also be auto-fit
or auto-fill
)
line_names: OwnedSlice<OwnedSlice<CustomIdent>>
<line-names>
accompanying <track_size>
values.
If there’s no <line-names>
, then it’s represented by an empty vector.
For N <track-size>
values, there will be N+1 <line-names>
, and so this vector’s
length is always one value more than that of the <track-size>
.
track_sizes: OwnedSlice<GenericTrackSize<L>>
<track-size>
values.
Implementations§
source§impl TrackRepeat<LengthPercentage, Integer>
impl TrackRepeat<LengthPercentage, Integer>
fn parse_with_repeat_type<'i, 't>( context: &ParserContext<'_>, input: &mut Parser<'i, 't>, ) -> Result<(Self, RepeatType), ParseError<'i>>
Trait Implementations§
source§impl Animate for TrackRepeat<LengthPercentage, Integer>
impl Animate for TrackRepeat<LengthPercentage, Integer>
source§impl<L: Clone, I: Clone> Clone for GenericTrackRepeat<L, I>
impl<L: Clone, I: Clone> Clone for GenericTrackRepeat<L, I>
source§fn clone(&self) -> GenericTrackRepeat<L, I>
fn clone(&self) -> GenericTrackRepeat<L, I>
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<L, I> MallocSizeOf for GenericTrackRepeat<L, I>where
L: MallocSizeOf,
I: MallocSizeOf,
impl<L, I> MallocSizeOf for GenericTrackRepeat<L, I>where
L: MallocSizeOf,
I: MallocSizeOf,
source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
source§impl<L: PartialEq, I: PartialEq> PartialEq for GenericTrackRepeat<L, I>
impl<L: PartialEq, I: PartialEq> PartialEq for GenericTrackRepeat<L, I>
source§fn eq(&self, other: &GenericTrackRepeat<L, I>) -> bool
fn eq(&self, other: &GenericTrackRepeat<L, I>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<L, I> SpecifiedValueInfo for GenericTrackRepeat<L, I>
impl<L, I> SpecifiedValueInfo for GenericTrackRepeat<L, I>
source§const SUPPORTED_TYPES: u8 = 0u8
const SUPPORTED_TYPES: u8 = 0u8
Supported CssTypes by the given value type. Read more
source§impl<L, I> ToAnimatedValue for GenericTrackRepeat<L, I>where
L: ToAnimatedValue,
I: ToAnimatedValue,
impl<L, I> ToAnimatedValue for GenericTrackRepeat<L, I>where
L: ToAnimatedValue,
I: ToAnimatedValue,
§type AnimatedValue = GenericTrackRepeat<<L as ToAnimatedValue>::AnimatedValue, <I as ToAnimatedValue>::AnimatedValue>
type AnimatedValue = GenericTrackRepeat<<L as ToAnimatedValue>::AnimatedValue, <I as ToAnimatedValue>::AnimatedValue>
The type of the animated value.
source§fn from_animated_value(from: Self::AnimatedValue) -> Self
fn from_animated_value(from: Self::AnimatedValue) -> Self
Converts back an animated value into a computed value.
source§fn to_animated_value(self, context: &Context<'_>) -> Self::AnimatedValue
fn to_animated_value(self, context: &Context<'_>) -> Self::AnimatedValue
Converts this value to an animated value.
source§impl<L, I> ToComputedValue for GenericTrackRepeat<L, I>where
L: ToComputedValue,
I: ToComputedValue,
impl<L, I> ToComputedValue for GenericTrackRepeat<L, I>where
L: ToComputedValue,
I: ToComputedValue,
§type ComputedValue = GenericTrackRepeat<<L as ToComputedValue>::ComputedValue, <I as ToComputedValue>::ComputedValue>
type ComputedValue = GenericTrackRepeat<<L as ToComputedValue>::ComputedValue, <I as ToComputedValue>::ComputedValue>
The computed value type we’re going to be converted to.
source§fn from_computed_value(from: &Self::ComputedValue) -> Self
fn from_computed_value(from: &Self::ComputedValue) -> Self
Convert a computed value to specified value form. Read more
source§fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
fn to_computed_value(&self, context: &Context<'_>) -> Self::ComputedValue
Convert a specified value to a computed value, using itself and the data
inside the
Context
.source§impl<L, I> ToResolvedValue for GenericTrackRepeat<L, I>where
L: ToResolvedValue,
I: ToResolvedValue,
impl<L, I> ToResolvedValue for GenericTrackRepeat<L, I>where
L: ToResolvedValue,
I: ToResolvedValue,
§type ResolvedValue = GenericTrackRepeat<<L as ToResolvedValue>::ResolvedValue, <I as ToResolvedValue>::ResolvedValue>
type ResolvedValue = GenericTrackRepeat<<L as ToResolvedValue>::ResolvedValue, <I as ToResolvedValue>::ResolvedValue>
The resolved value type we’re going to be converted to.
source§fn from_resolved_value(from: Self::ResolvedValue) -> Self
fn from_resolved_value(from: Self::ResolvedValue) -> Self
Convert a resolved value to resolved value form.
source§fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
fn to_resolved_value(self, context: &Context<'_>) -> Self::ResolvedValue
Convert a resolved value to a resolved value.
source§impl<L, I> ToShmem for GenericTrackRepeat<L, I>
impl<L, I> ToShmem for GenericTrackRepeat<L, I>
impl<L, I> StructuralPartialEq for GenericTrackRepeat<L, I>
Auto Trait Implementations§
impl<L, I> Freeze for GenericTrackRepeat<L, I>where
I: Freeze,
impl<L, I> RefUnwindSafe for GenericTrackRepeat<L, I>where
I: RefUnwindSafe,
L: RefUnwindSafe,
impl<L, I> Send for GenericTrackRepeat<L, I>
impl<L, I> Sync for GenericTrackRepeat<L, I>
impl<L, I> Unpin for GenericTrackRepeat<L, I>
impl<L, I> UnwindSafe for GenericTrackRepeat<L, I>
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> 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 moresource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert