pub enum LengthUnit {
Show 14 variants
Meter,
Millimeter,
Centimeter,
Kilometer,
Micrometer,
Nanometer,
AstronomicalUnit,
Parsec,
LightYear,
Foot,
NauticalMile,
Mile,
EarthRadius,
SolarRadius,
}Expand description
Display / conversion units for Length.
Variants§
Meter
Meter (m) – SI base unit.
Millimeter
Millimeter (mm).
Centimeter
Centimeter (cm).
Kilometer
Kilometer (km).
Micrometer
Micrometer (um).
Nanometer
Nanometer (nm).
AstronomicalUnit
Astronomical unit (AU) – ~149.6 Gm.
Parsec
Parsec (pc) – ~3.086e16 m.
LightYear
Light-year (ly) – ~9.461e15 m.
Foot
International foot (ft) – 0.3048 m.
NauticalMile
Nautical mile (nmi) – 1852 m.
Mile
Statute mile (mi) – 1609.344 m.
EarthRadius
Mean Earth radius – 6 371 000 m.
SolarRadius
Solar radius – 6.957e8 m.
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 PartialEq for LengthUnit
impl PartialEq for LengthUnit
impl Copy for LengthUnit
impl Eq 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 UnsafeUnpin 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