Enum cssparser::NumberOrPercentage
source · [−]Expand description
Either a number or a percentage.
Variants
Number
Fields
value: f32
The numeric value parsed, as a float.
<number>
.
Percentage
Fields
unit_value: f32
The value as a float, divided by 100 so that the nominal range is 0.0 to 1.0.
<percentage>
Auto Trait Implementations
impl RefUnwindSafe for NumberOrPercentage
impl Send for NumberOrPercentage
impl Sync for NumberOrPercentage
impl Unpin for NumberOrPercentage
impl UnwindSafe for NumberOrPercentage
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more