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§
Source§impl Clone for QuantityValue
impl Clone for QuantityValue
Source§fn clone(&self) -> QuantityValue
fn clone(&self) -> QuantityValue
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Send for QuantityValue
impl !Sync for QuantityValue
impl Freeze 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