pub struct Quantity {
pub value: f64,
pub unit: String,
}Expand description
A physical quantity: a value with a required unit IRI (T3).
Mixing kPa and Pa without conversion is a type error. Dimensionless
quantities have an explicit empty unit IRI.
Fields§
§value: f64§unit: StringUnit IRI (e.g. "qudt:KiloPascal"). Empty string = dimensionless.
Implementations§
Trait Implementations§
impl StructuralPartialEq for Quantity
Auto Trait Implementations§
impl Freeze for Quantity
impl RefUnwindSafe for Quantity
impl Send for Quantity
impl Sync for Quantity
impl Unpin for Quantity
impl UnsafeUnpin for Quantity
impl UnwindSafe for Quantity
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