pub enum UnitContainer {
MM(MM),
CM(CM),
M(M),
KM(KM),
INCH(INCH),
FOOT(FOOT),
YARD(YARD),
MILE(MILE),
}Variants§
Implementations§
Trait Implementations§
Source§impl From<UnitContainer> for CM
impl From<UnitContainer> for CM
Source§fn from(uc: UnitContainer) -> Self
fn from(uc: UnitContainer) -> Self
Converts to this type from the input type.
Source§impl From<UnitContainer> for FOOT
impl From<UnitContainer> for FOOT
Source§fn from(uc: UnitContainer) -> Self
fn from(uc: UnitContainer) -> Self
Converts to this type from the input type.
Source§impl From<UnitContainer> for INCH
impl From<UnitContainer> for INCH
Source§fn from(uc: UnitContainer) -> Self
fn from(uc: UnitContainer) -> Self
Converts to this type from the input type.
Source§impl From<UnitContainer> for KM
impl From<UnitContainer> for KM
Source§fn from(uc: UnitContainer) -> Self
fn from(uc: UnitContainer) -> Self
Converts to this type from the input type.
Source§impl From<UnitContainer> for M
impl From<UnitContainer> for M
Source§fn from(uc: UnitContainer) -> Self
fn from(uc: UnitContainer) -> Self
Converts to this type from the input type.
Source§impl From<UnitContainer> for MILE
impl From<UnitContainer> for MILE
Source§fn from(uc: UnitContainer) -> Self
fn from(uc: UnitContainer) -> Self
Converts to this type from the input type.
Source§impl From<UnitContainer> for MM
impl From<UnitContainer> for MM
Source§fn from(uc: UnitContainer) -> Self
fn from(uc: UnitContainer) -> Self
Converts to this type from the input type.
Source§impl From<UnitContainer> for YARD
impl From<UnitContainer> for YARD
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