#[non_exhaustive]pub enum LengthUnits {
Meters,
Kilometers,
Feet,
Mile,
NauticalMile,
USSurveyFoot,
}
Expand description
Represents a specific length unit - SI or otherwise
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Meters
SI Base Unit for Length - Meters
Kilometers
SI Derived unit kilometers
Feet
US Imperial “Foot”
Mile
US Imperial “Mile”
NauticalMile
Nautical Mile, classically 1 arcminute on the Earth
USSurveyFoot
The U.S. Survey Foot
Implementations§
Source§impl LengthUnits
impl LengthUnits
pub const fn short_name(&self) -> &'static str
Trait Implementations§
Source§impl Clone for LengthUnits
impl Clone for LengthUnits
Source§fn clone(&self) -> LengthUnits
fn clone(&self) -> LengthUnits
Returns a copy 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 LengthUnits
impl Debug for LengthUnits
Source§impl Default for LengthUnits
impl Default for LengthUnits
Source§fn default() -> LengthUnits
fn default() -> LengthUnits
Returns the “default value” for a type. Read more
Source§impl FromUnits<f32> for LengthUnits
impl FromUnits<f32> for LengthUnits
Source§impl FromUnits<f64> for LengthUnits
impl FromUnits<f64> for LengthUnits
Source§impl PartialEq for LengthUnits
impl PartialEq for LengthUnits
Source§impl Unit<LengthUnits> for &Length
impl Unit<LengthUnits> for &Length
Source§impl Unit<LengthUnits> for &mut Length
impl Unit<LengthUnits> for &mut Length
Source§impl Unit<LengthUnits> for Length
impl Unit<LengthUnits> for Length
Source§impl UnitStruct<LengthUnits> for &Length
impl UnitStruct<LengthUnits> for &Length
Source§impl UnitStruct<LengthUnits> for &mut Length
impl UnitStruct<LengthUnits> for &mut Length
Source§impl UnitStruct<LengthUnits> for Length
impl UnitStruct<LengthUnits> for Length
impl Copy for LengthUnits
impl Eq for LengthUnits
impl StructuralPartialEq for LengthUnits
Auto Trait Implementations§
impl Freeze for LengthUnits
impl RefUnwindSafe for LengthUnits
impl Send for LengthUnits
impl Sync for LengthUnits
impl Unpin for LengthUnits
impl UnwindSafe for LengthUnits
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