Enum style::values::generics::grid::TrackBreadth [] [src]

pub enum TrackBreadth<L> {
    Breadth(L),
    Fr(CSSFloat),
    Keyword(TrackKeyword),
}

A track breadth for explicit grid track sizing. It's generic solely to avoid re-implementing it for the computed type.

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

Variants

The generic type is almost always a non-negative <length-percentage>

A flex fraction specified in fr units.

One of the track-sizing keywords (auto, min-content, max-content)

Methods

impl<L> TrackBreadth<L>
[src]

[src]

Check whether this is a <fixed-breadth> (i.e., it only has <length-percentage>)

https://drafts.csswg.org/css-grid/#typedef-fixed-breadth

Trait Implementations

impl<L: Clone> Clone for TrackBreadth<L>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<L: Debug> Debug for TrackBreadth<L>
[src]

[src]

Formats the value using the given formatter. Read more

impl<L> MallocSizeOf for TrackBreadth<L> where
    L: 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<L: PartialEq> PartialEq for TrackBreadth<L>
[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> ToComputedValue for TrackBreadth<L> where
    L: ToComputedValue
[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

impl<L> ToCss for TrackBreadth<L> where
    L: ToCss
[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 TrackBreadth<LengthOrPercentage>
[src]

[src]

Parse a value of this type. Read more