Struct rink_core::number::Number [−][src]
Expand description
The basic representation of a number with a unit.
Fields
value: Numeric
unit: Quantity
Implementations
Creates a value with a single dimension.
Computes the nth root of a value iff all of its units have powers divisible by n.
Convert the units of the number from base units to display units, and possibly apply SI prefixes.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Number
impl UnwindSafe for Number
Blanket Implementations
Mutably borrows from an owned value. Read more