Struct style::values::generics::grid::TrackList
[−]
[src]
pub struct TrackList<LengthOrPercentage, Integer> { pub list_type: TrackListType, pub values: Vec<TrackListValue<LengthOrPercentage, Integer>>, pub line_names: Box<[Box<[CustomIdent]>]>, pub auto_repeat: Option<TrackRepeat<LengthOrPercentage, Integer>>, }
A grid <track-list>
type.
Fields
list_type: TrackListType
The type of this <track-list>
(auto, explicit or general).
In order to avoid parsing the same value multiple times, this does a single traversal and arrives at the type of value it has parsed (or bails out gracefully with an error).
values: Vec<TrackListValue<LengthOrPercentage, Integer>>
A vector of <track-size> | <track-repeat>
values.
line_names: Box<[Box<[CustomIdent]>]>
<line-names>
accompanying <track-size> | <track-repeat>
values.
If there's no <line-names>
, then it's represented by an empty vector.
For N 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>
.
auto_repeat: Option<TrackRepeat<LengthOrPercentage, Integer>>
<auto-repeat>
value. There can only be one <auto-repeat>
in a TrackList.
Trait Implementations
impl<LengthOrPercentage: Clone, Integer: Clone> Clone for TrackList<LengthOrPercentage, Integer>
[src]
fn clone(&self) -> TrackList<LengthOrPercentage, Integer>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<LengthOrPercentage: Debug, Integer: Debug> Debug for TrackList<LengthOrPercentage, Integer>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<LengthOrPercentage, Integer> MallocSizeOf for TrackList<LengthOrPercentage, Integer> where
LengthOrPercentage: MallocSizeOf,
Integer: MallocSizeOf,
[src]
LengthOrPercentage: MallocSizeOf,
Integer: MallocSizeOf,
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
[src]
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more
impl<LengthOrPercentage: PartialEq, Integer: PartialEq> PartialEq for TrackList<LengthOrPercentage, Integer>
[src]
fn eq(&self, __arg_0: &TrackList<LengthOrPercentage, Integer>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &TrackList<LengthOrPercentage, Integer>) -> bool
[src]
This method tests for !=
.
impl<L: ToCss, I: ToCss> ToCss for TrackList<L, I>
[src]
fn to_css<W>(&self, dest: &mut W) -> Result where
W: Write,
[src]
W: Write,
Serialize self
in CSS syntax, writing to dest
.
fn to_css_string(&self) -> String
[src]
Serialize self
in CSS syntax and return a string. Read more
impl Parse for TrackList<LengthOrPercentage, Integer>
[src]
fn parse<'i, 't>(
context: &ParserContext,
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i>>
[src]
context: &ParserContext,
input: &mut Parser<'i, 't>
) -> Result<Self, ParseError<'i>>
Parse a value of this type. Read more
impl ToComputedValue for TrackList<LengthOrPercentage, Integer>
[src]
type ComputedValue = TrackList<LengthOrPercentage, Integer>
The computed value type we're going to be converted to.
fn to_computed_value(&self, context: &Context) -> Self::ComputedValue
[src]
Convert a specified value to a computed value, using itself and the data inside the Context
. Read more
fn from_computed_value(computed: &Self::ComputedValue) -> Self
[src]
Convert a computed value to specified value form. Read more