Struct sep2_common::packages::types::UnitValueType
source · pub struct UnitValueType {
pub multiplier: PowerOfTenMultiplierType,
pub unit: UomType,
pub value: Int32,
}
Expand description
Type for specification of a specific value, with units and power of ten multiplier.
Fields§
§multiplier: PowerOfTenMultiplierType
Multiplier for ‘unit’.
unit: UomType
Unit in symbol
value: Int32
Value in units specified
Trait Implementations§
source§impl Clone for UnitValueType
impl Clone for UnitValueType
source§fn clone(&self) -> UnitValueType
fn clone(&self) -> UnitValueType
Returns a copy of the value. Read more
1.0.0 · 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 UnitValueType
impl Debug for UnitValueType
source§impl Default for UnitValueType
impl Default for UnitValueType
source§fn default() -> UnitValueType
fn default() -> UnitValueType
Returns the “default value” for a type. Read more
source§impl Ord for UnitValueType
impl Ord for UnitValueType
source§fn cmp(&self, other: &UnitValueType) -> Ordering
fn cmp(&self, other: &UnitValueType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<UnitValueType> for UnitValueType
impl PartialEq<UnitValueType> for UnitValueType
source§fn eq(&self, other: &UnitValueType) -> bool
fn eq(&self, other: &UnitValueType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<UnitValueType> for UnitValueType
impl PartialOrd<UnitValueType> for UnitValueType
source§fn partial_cmp(&self, other: &UnitValueType) -> Option<Ordering>
fn partial_cmp(&self, other: &UnitValueType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl YaDeserialize for UnitValueType
impl YaDeserialize for UnitValueType
source§impl YaSerialize for UnitValueType
impl YaSerialize for UnitValueType
fn name() -> &'static strwhere Self: Sized,
fn serialize<W: Write>(&self, writer: &mut Serializer<W>) -> Result<(), String>where Self: Sized,
fn serialize_attributes( &self, source_attributes: Vec<OwnedAttribute>, source_namespace: Namespace ) -> Result<(Vec<OwnedAttribute>, Namespace), String>where Self: Sized,
impl Eq for UnitValueType
impl StructuralEq for UnitValueType
impl StructuralPartialEq for UnitValueType
Auto Trait Implementations§
impl RefUnwindSafe for UnitValueType
impl Send for UnitValueType
impl Sync for UnitValueType
impl Unpin for UnitValueType
impl UnwindSafe for UnitValueType
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