Type Alias style::values::specified::TrackList

source ·
pub type TrackList = TrackList<LengthPercentage, Integer>;
Expand description

The specified value of a grid <track-list> (could also be <auto-track-list> or <explicit-track-list>)

Aliased Type§

struct TrackList {
    pub auto_repeat_index: usize,
    pub values: OwnedSlice<GenericTrackListValue<LengthPercentage, Integer>>,
    pub line_names: OwnedSlice<OwnedSlice<CustomIdent>>,
}

Fields§

§auto_repeat_index: usize

The index in values where our <auto-repeat> value is, if in bounds.

§values: OwnedSlice<GenericTrackListValue<LengthPercentage, Integer>>

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

§line_names: OwnedSlice<OwnedSlice<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>.