[−][src]Struct om2::Measure
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: NumericUnion
has_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]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl PartialEq<Measure> for Measure
[src]
impl Serialize for Measure
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,