pub enum UnitContainer {
Milligram(Milligram),
Gram(Gram),
Kilogram(Kilogram),
Tonne(Tonne),
ImperialTon(ImperialTon),
UsTon(UsTon),
Pound(Pound),
Ounce(Ounce),
}Variants§
Milligram(Milligram)
Gram(Gram)
Kilogram(Kilogram)
Tonne(Tonne)
ImperialTon(ImperialTon)
UsTon(UsTon)
Pound(Pound)
Ounce(Ounce)
Implementations§
Trait Implementations§
Source§impl From<UnitContainer> for Gram
impl From<UnitContainer> for Gram
Source§fn from(uc: UnitContainer) -> Self
fn from(uc: UnitContainer) -> Self
Converts to this type from the input type.
Source§impl From<UnitContainer> for ImperialTon
impl From<UnitContainer> for ImperialTon
Source§fn from(uc: UnitContainer) -> Self
fn from(uc: UnitContainer) -> Self
Converts to this type from the input type.
Source§impl From<UnitContainer> for Kilogram
impl From<UnitContainer> for Kilogram
Source§fn from(uc: UnitContainer) -> Self
fn from(uc: UnitContainer) -> Self
Converts to this type from the input type.
Source§impl From<UnitContainer> for Milligram
impl From<UnitContainer> for Milligram
Source§fn from(uc: UnitContainer) -> Self
fn from(uc: UnitContainer) -> Self
Converts to this type from the input type.
Source§impl From<UnitContainer> for Ounce
impl From<UnitContainer> for Ounce
Source§fn from(uc: UnitContainer) -> Self
fn from(uc: UnitContainer) -> Self
Converts to this type from the input type.
Source§impl From<UnitContainer> for Pound
impl From<UnitContainer> for Pound
Source§fn from(uc: UnitContainer) -> Self
fn from(uc: UnitContainer) -> Self
Converts to this type from the input type.
Source§impl From<UnitContainer> for Tonne
impl From<UnitContainer> for Tonne
Source§fn from(uc: UnitContainer) -> Self
fn from(uc: UnitContainer) -> Self
Converts to this type from the input type.
Source§impl From<UnitContainer> for UsTon
impl From<UnitContainer> for UsTon
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