pub struct UnitDef {
pub name: String,
pub dimension_name: String,
pub dimension_vector: DimensionVector,
pub scale: f64,
/* private fields */
}Expand description
A single registered unit.
Fields§
§name: String§dimension_name: String§dimension_vector: DimensionVector§scale: f64Canonical units per 1 of this unit (e.g. for °C → K, scale=1).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnitDef
impl RefUnwindSafe for UnitDef
impl Send for UnitDef
impl Sync for UnitDef
impl Unpin for UnitDef
impl UnsafeUnpin for UnitDef
impl UnwindSafe for UnitDef
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