pub struct QuantityValue {
pub dim: Rc<String>,
pub value: f64,
}Expand description
A uniquely owned quantity magnitude and its shared dimension key. Cloning preserves independent magnitude mutation and dimension copy-on-write.
Fields§
§dim: Rc<String>The shared dimension key; use quantity_dimension_mut for copy-on-write.
value: f64The magnitude in the base unit.
Trait Implementations§
Auto Trait Implementations§
impl !Send for QuantityValue
impl !Sync for QuantityValue
impl Forget for QuantityValue
impl Freeze for QuantityValue
impl Move for QuantityValue
impl RefUnwindSafe for QuantityValue
impl Unpin for QuantityValue
impl UnsafeUnpin for QuantityValue
impl UnwindSafe for QuantityValue
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