[][src]Struct om2::Measure

pub struct Measure {
    pub has_numerical_value: NumericUnion,
    pub has_unit: Unit,
}

A numeric value with its unit of measure.

ID: http://www.ontology-of-units-of-measure.org/resource/om-2/Measure

Fields

has_numerical_value: NumericUnionhas_unit: Unit

Implementations

impl Measure[src]

pub fn has_numerical_value(&self) -> &NumericUnion[src]

pub fn has_unit(&self) -> &Unit[src]

impl Measure[src]

pub fn set_has_numerical_value(&mut self, val: NumericUnion) -> &mut Self[src]

pub fn set_has_unit(&mut self, val: Unit) -> &mut Self[src]

impl Measure[src]

pub fn has_numerical_value_mut(&mut self) -> &mut NumericUnion[src]

pub fn has_unit_mut(&mut self) -> &mut Unit[src]

impl Measure[src]

pub fn new<T: Into<NumericUnion>>(value: T, unit: Unit) -> Self[src]

Trait Implementations

impl Clone for Measure[src]

impl Debug for Measure[src]

impl<'de> Deserialize<'de> for Measure[src]

impl PartialEq<Measure> for Measure[src]

impl Serialize for Measure[src]

impl StructuralPartialEq for Measure[src]

Auto Trait Implementations

impl RefUnwindSafe for Measure

impl Send for Measure

impl Sync for Measure

impl Unpin for Measure

impl UnwindSafe for Measure

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.