Enum style::values::specified::calc::CalcUnit [] [src]

pub enum CalcUnit {
    Number,
    Integer,
    Length,
    Percentage,
    LengthOrPercentage,
    Angle,
    Time,
}

An expected unit we intend to parse within a calc() expression.

This is used as a hint for the parser to fast-reject invalid expressions.

Variants

<number>

<integer>

<length>

<percentage>

<length> | <percentage>

<angle>

<time>

Trait Implementations

impl Clone for CalcUnit
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for CalcUnit
[src]

impl PartialEq for CalcUnit
[src]

[src]

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

1.0.0
[src]

This method tests for !=.