pub enum SourceValue {
Fraction(BoundedFraction),
Hours(NonNegativeHours),
}Expand description
The value of a measurement, bounded to meaningful ranges.
Variants§
Fraction(BoundedFraction)
Hours(NonNegativeHours)
Trait Implementations§
Source§impl Clone for SourceValue
impl Clone for SourceValue
Source§fn clone(&self) -> SourceValue
fn clone(&self) -> SourceValue
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 moreSource§impl Debug for SourceValue
impl Debug for SourceValue
Source§impl<'de> Deserialize<'de> for SourceValue
impl<'de> Deserialize<'de> for SourceValue
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SourceValue
impl RefUnwindSafe for SourceValue
impl Send for SourceValue
impl Sync for SourceValue
impl Unpin for SourceValue
impl UnsafeUnpin for SourceValue
impl UnwindSafe for SourceValue
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