pub struct MeasuredValue {
pub verbatim: &'static str,
pub unit: &'static str,
pub quantity: &'static str,
pub uncertainty: Option<&'static str>,
pub citation: Citation,
}Expand description
A foreign-unit value recorded verbatim with its unit (Rule Y.1).
Rule Y concedes metrology and nothing else: empirical inputs arrive in foreign units because that is how measurement works, but the declared constant — the value the specification and the code use — is always the tick value.
Fields§
§verbatim: &'static strThe value exactly as published, as a string. Never parsed into a float.
unit: &'static strThe unit the published value is in.
quantity: &'static strWhat quantity this is.
uncertainty: Option<&'static str>Published uncertainty, verbatim, where one is quoted.
citation: CitationWhere it came from.
Trait Implementations§
Source§impl Clone for MeasuredValue
impl Clone for MeasuredValue
Source§fn clone(&self) -> MeasuredValue
fn clone(&self) -> MeasuredValue
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 MeasuredValue
Source§impl Debug for MeasuredValue
impl Debug for MeasuredValue
impl Eq for MeasuredValue
Source§impl PartialEq for MeasuredValue
impl PartialEq for MeasuredValue
impl StructuralPartialEq for MeasuredValue
Auto Trait Implementations§
impl Freeze for MeasuredValue
impl RefUnwindSafe for MeasuredValue
impl Send for MeasuredValue
impl Sync for MeasuredValue
impl Unpin for MeasuredValue
impl UnsafeUnpin for MeasuredValue
impl UnwindSafe for MeasuredValue
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