pub enum QuantityMetadata {
Coherent(Quantity),
NanosecondTime,
}Expand description
A physical quantity associated with a compatible storage unit.
Variants§
Coherent(Quantity)
Coherent storage for a supported quantity.
NanosecondTime
Copper’s nanosecond time storage.
Implementations§
Source§impl QuantityMetadata
impl QuantityMetadata
Sourcepub const fn coherent(quantity: Quantity) -> QuantityMetadata
pub const fn coherent(quantity: Quantity) -> QuantityMetadata
Describe the quantity’s coherent storage, including named dimensionless units.
Sourcepub const fn time(unit: TimeStorageUnit) -> QuantityMetadata
pub const fn time(unit: TimeStorageUnit) -> QuantityMetadata
Describe time with an explicitly selected storage unit.
Sourcepub const fn storage_unit(self) -> StorageUnit
pub const fn storage_unit(self) -> StorageUnit
Compatible storage unit.
Trait Implementations§
Source§impl Clone for QuantityMetadata
impl Clone for QuantityMetadata
Source§fn clone(&self) -> QuantityMetadata
fn clone(&self) -> QuantityMetadata
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 moreimpl Copy for QuantityMetadata
Source§impl Debug for QuantityMetadata
impl Debug for QuantityMetadata
impl Eq for QuantityMetadata
Source§impl PartialEq for QuantityMetadata
impl PartialEq for QuantityMetadata
impl StructuralPartialEq for QuantityMetadata
Auto Trait Implementations§
impl Freeze for QuantityMetadata
impl RefUnwindSafe for QuantityMetadata
impl Send for QuantityMetadata
impl Sync for QuantityMetadata
impl Unpin for QuantityMetadata
impl UnsafeUnpin for QuantityMetadata
impl UnwindSafe for QuantityMetadata
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