Struct cssparser::NumericValue [] [src]

pub struct NumericValue {
    pub value: f32,
    pub int_value: Option<i32>,
    pub has_sign: bool,
}

The numeric value of Number and Dimension tokens.

Fields

The value as a float

If the origin source did not include a fractional part, the value as an integer.

Whether the number had a + or - sign.

This is used is some cases like the micro syntax. (See the parse_nth function.)

Trait Implementations

impl PartialEq for NumericValue
[src]

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

This method tests for !=.

impl Debug for NumericValue
[src]

Formats the value using the given formatter.

impl Copy for NumericValue
[src]

impl Clone for NumericValue
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more