pub struct UnitValue {
pub value: f64,
pub unit: Option<Unit>,
}Expand description
Represents a numeric value with an optional unit
Fields§
§value: f64§unit: Option<Unit>Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnitValue
impl RefUnwindSafe for UnitValue
impl Send for UnitValue
impl Sync for UnitValue
impl Unpin for UnitValue
impl UnwindSafe for UnitValue
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more