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.

https://drafts.csswg.org/css-grid/#typedef-track-list

Fields

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).

A vector of <track-size> | <track-repeat> values.

<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> value. There can only be one <auto-repeat> in a TrackList.

Trait Implementations

impl<LengthOrPercentage: Clone, Integer: Clone> Clone for TrackList<LengthOrPercentage, Integer>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<LengthOrPercentage: Debug, Integer: Debug> Debug for TrackList<LengthOrPercentage, Integer>
[src]

[src]

Formats the value using the given formatter. Read more

impl<LengthOrPercentage, Integer> MallocSizeOf for TrackList<LengthOrPercentage, Integer> where
    LengthOrPercentage: MallocSizeOf,
    Integer: MallocSizeOf
[src]

[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]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<L: ToCss, I: ToCss> ToCss for TrackList<L, I>
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

Serialize self in CSS syntax and return a string. Read more

impl Parse for TrackList<LengthOrPercentage, Integer>
[src]

[src]

Parse a value of this type. Read more

impl ToComputedValue for TrackList<LengthOrPercentage, Integer>
[src]

The computed value type we're going to be converted to.

[src]

Convert a specified value to a computed value, using itself and the data inside the Context. Read more

[src]

Convert a computed value to specified value form. Read more