pub enum LengthUnit {
Meter,
Foot,
None,
}Variants§
Implementations§
Source§impl LengthUnit
impl LengthUnit
pub fn conversion_factor(from: &LengthUnit, to: &LengthUnit) -> f64
pub fn to_string(&self) -> &'static str
Trait Implementations§
Source§impl Clone for LengthUnit
impl Clone for LengthUnit
Source§fn clone(&self) -> LengthUnit
fn clone(&self) -> LengthUnit
Returns a duplicate 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 LengthUnit
impl Debug for LengthUnit
Source§impl<T: IsEngUnitType + Into<AmountOfSubstanceUnit> + Into<ElectricCurrentUnit> + Into<LengthUnit> + Into<LuminousIntensityUnit> + Into<MassUnit> + Into<TemperatureDeltaUnit> + Into<TimeUnit>> From<&T> for LengthUnit
impl<T: IsEngUnitType + Into<AmountOfSubstanceUnit> + Into<ElectricCurrentUnit> + Into<LengthUnit> + Into<LuminousIntensityUnit> + Into<MassUnit> + Into<TemperatureDeltaUnit> + Into<TimeUnit>> From<&T> for LengthUnit
Source§impl From<AmountOfSubstanceUnit> for LengthUnit
impl From<AmountOfSubstanceUnit> for LengthUnit
Source§fn from(_: AmountOfSubstanceUnit) -> Self
fn from(_: AmountOfSubstanceUnit) -> Self
Converts to this type from the input type.
Source§impl From<ElectricCurrentUnit> for LengthUnit
impl From<ElectricCurrentUnit> for LengthUnit
Source§fn from(_: ElectricCurrentUnit) -> Self
fn from(_: ElectricCurrentUnit) -> Self
Converts to this type from the input type.
Source§impl From<LengthUnit> for AmountOfSubstanceUnit
impl From<LengthUnit> for AmountOfSubstanceUnit
Source§fn from(_: LengthUnit) -> Self
fn from(_: LengthUnit) -> Self
Converts to this type from the input type.
Source§impl From<LengthUnit> for ElectricCurrentUnit
impl From<LengthUnit> for ElectricCurrentUnit
Source§fn from(_: LengthUnit) -> Self
fn from(_: LengthUnit) -> Self
Converts to this type from the input type.
Source§impl From<LengthUnit> for LuminousIntensityUnit
impl From<LengthUnit> for LuminousIntensityUnit
Source§fn from(_: LengthUnit) -> Self
fn from(_: LengthUnit) -> Self
Converts to this type from the input type.
Source§impl From<LengthUnit> for MassUnit
impl From<LengthUnit> for MassUnit
Source§fn from(_: LengthUnit) -> Self
fn from(_: LengthUnit) -> Self
Converts to this type from the input type.
Source§impl From<LengthUnit> for TemperatureDeltaUnit
impl From<LengthUnit> for TemperatureDeltaUnit
Source§fn from(_: LengthUnit) -> Self
fn from(_: LengthUnit) -> Self
Converts to this type from the input type.
Source§impl From<LengthUnit> for TimeUnit
impl From<LengthUnit> for TimeUnit
Source§fn from(_: LengthUnit) -> Self
fn from(_: LengthUnit) -> Self
Converts to this type from the input type.
Source§impl From<LuminousIntensityUnit> for LengthUnit
impl From<LuminousIntensityUnit> for LengthUnit
Source§fn from(_: LuminousIntensityUnit) -> Self
fn from(_: LuminousIntensityUnit) -> Self
Converts to this type from the input type.
Source§impl From<MassUnit> for LengthUnit
impl From<MassUnit> for LengthUnit
Source§impl From<TemperatureDeltaUnit> for LengthUnit
impl From<TemperatureDeltaUnit> for LengthUnit
Source§fn from(_: TemperatureDeltaUnit) -> Self
fn from(_: TemperatureDeltaUnit) -> Self
Converts to this type from the input type.
Source§impl From<TimeUnit> for LengthUnit
impl From<TimeUnit> for LengthUnit
Source§impl IsEngUnitType for LengthUnit
impl IsEngUnitType for LengthUnit
fn is_length_unit() -> bool
fn is_amount_unit() -> bool
fn is_electric_current_unit() -> bool
fn is_luminous_unit() -> bool
fn is_mass_unit() -> bool
fn is_temperature_unit() -> bool
fn is_time_unit() -> bool
Source§impl PartialEq for LengthUnit
impl PartialEq for LengthUnit
impl Copy for LengthUnit
impl StructuralPartialEq for LengthUnit
Auto Trait Implementations§
impl Freeze for LengthUnit
impl RefUnwindSafe for LengthUnit
impl Send for LengthUnit
impl Sync for LengthUnit
impl Unpin for LengthUnit
impl UnwindSafe for LengthUnit
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