Struct rust_sbml::Unit [−][src]
pub struct Unit { pub kind: UnitSIdRef, pub exponent: f64, pub scale: i64, pub multiplier: f64, }
Expand description
A Unit object represents a reference to a (possibly transformed) base unit (see UnitSIdRef).
The attribute kind indicates the base unit, whereas the attributes exponent, scale and multiplier define how the base unit is being transformed.
Fields
kind: UnitSIdRef
exponent: f64
scale: i64
multiplier: f64
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 Unit
impl UnwindSafe for Unit
Blanket Implementations
Mutably borrows from an owned value. Read more