pub struct UnitDoubleValue {
pub units: String,
pub value: f64,
}Expand description
Значение единицы измерения (UntF / UnFl).
units хранит человекочитаемое имя (как в TS { units, value }), а
float32 отличает UnFl (одинарная точность) от UntF (двойная) на записи.
Fields§
§units: String§value: f64Trait Implementations§
Source§impl Clone for UnitDoubleValue
impl Clone for UnitDoubleValue
Source§fn clone(&self) -> UnitDoubleValue
fn clone(&self) -> UnitDoubleValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UnitDoubleValue
impl Debug for UnitDoubleValue
Source§impl PartialEq for UnitDoubleValue
impl PartialEq for UnitDoubleValue
Source§fn eq(&self, other: &UnitDoubleValue) -> bool
fn eq(&self, other: &UnitDoubleValue) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UnitDoubleValue
Auto Trait Implementations§
impl Freeze for UnitDoubleValue
impl RefUnwindSafe for UnitDoubleValue
impl Send for UnitDoubleValue
impl Sync for UnitDoubleValue
impl Unpin for UnitDoubleValue
impl UnsafeUnpin for UnitDoubleValue
impl UnwindSafe for UnitDoubleValue
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