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
unit_value: f32
The value as a float, divided by 100 so that the nominal range is 0.0 to 1.0.
int_value: Option<i32>
If the origin source did not include a fractional part, the value as an integer. It is not divided by 100.
has_sign: bool
Whether the number had a +
or -
sign.
Trait Implementations
impl Clone for PercentageValue
[src]
fn clone(&self) -> PercentageValue
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Copy for PercentageValue
[src]
impl Debug for PercentageValue
[src]
impl PartialEq for PercentageValue
[src]
fn eq(&self, __arg_0: &PercentageValue) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PercentageValue) -> bool
This method tests for !=
.