Struct cssparser::PercentageValue [] [src]

pub struct PercentageValue {
    pub unit_value: f32,
    pub int_value: Option<i32>,
    pub has_sign: bool,
}

The numeric value of Percentage tokens.

Fields

The value as a float, divided by 100 so that the nominal range is 0.0 to 1.0.

If the origin source did not include a fractional part, the value as an integer. It is not divided by 100.

Whether the number had a + or - sign.

Trait Implementations

impl PartialEq for PercentageValue
[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 PercentageValue
[src]

Formats the value using the given formatter.

impl Copy for PercentageValue
[src]

impl Clone for PercentageValue
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more