pub enum UnitContainer {
MeterSec(MeterSec),
MeterMin(MeterMin),
KmH(KmH),
FootSec(FootSec),
FootMin(FootMin),
MilesHour(MilesHour),
}Variants§
MeterSec(MeterSec)
MeterMin(MeterMin)
KmH(KmH)
FootSec(FootSec)
FootMin(FootMin)
MilesHour(MilesHour)
Implementations§
Trait Implementations§
Source§impl From<UnitContainer> for FootMin
impl From<UnitContainer> for FootMin
Source§fn from(uc: UnitContainer) -> Self
fn from(uc: UnitContainer) -> Self
Converts to this type from the input type.
Source§impl From<UnitContainer> for FootSec
impl From<UnitContainer> for FootSec
Source§fn from(uc: UnitContainer) -> Self
fn from(uc: UnitContainer) -> Self
Converts to this type from the input type.
Source§impl From<UnitContainer> for KmH
impl From<UnitContainer> for KmH
Source§fn from(uc: UnitContainer) -> Self
fn from(uc: UnitContainer) -> Self
Converts to this type from the input type.
Source§impl From<UnitContainer> for MeterMin
impl From<UnitContainer> for MeterMin
Source§fn from(uc: UnitContainer) -> Self
fn from(uc: UnitContainer) -> Self
Converts to this type from the input type.
Source§impl From<UnitContainer> for MeterSec
impl From<UnitContainer> for MeterSec
Source§fn from(uc: UnitContainer) -> Self
fn from(uc: UnitContainer) -> Self
Converts to this type from the input type.
Source§impl From<UnitContainer> for MilesHour
impl From<UnitContainer> for MilesHour
Source§fn from(uc: UnitContainer) -> Self
fn from(uc: UnitContainer) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for UnitContainer
impl RefUnwindSafe for UnitContainer
impl Send for UnitContainer
impl Sync for UnitContainer
impl Unpin for UnitContainer
impl UnwindSafe for UnitContainer
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