pub struct Fmi2Unit {
pub name: String,
pub base_unit: Option<BaseUnit>,
pub display_unit: Vec<DisplayUnit>,
}Expand description
Unit definition (with respect to SI base units) and default display units
Fields§
§name: String§base_unit: Option<BaseUnit>BaseUnit_value = factor*Unit_value + offset
display_unit: Vec<DisplayUnit>Trait Implementations§
impl StructuralPartialEq for Fmi2Unit
Auto Trait Implementations§
impl Freeze for Fmi2Unit
impl RefUnwindSafe for Fmi2Unit
impl Send for Fmi2Unit
impl Sync for Fmi2Unit
impl Unpin for Fmi2Unit
impl UnwindSafe for Fmi2Unit
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more