pub enum DistanceUnit {
Kilometers,
Miles,
NauticalMiles,
Meters,
Yards,
Feet,
Inches,
}Expand description
Defines common units of distance that can be used
Variants§
Trait Implementations§
Source§impl Clone for DistanceUnit
impl Clone for DistanceUnit
Source§fn clone(&self) -> DistanceUnit
fn clone(&self) -> DistanceUnit
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for DistanceUnit
Source§impl Debug for DistanceUnit
impl Debug for DistanceUnit
impl Eq for DistanceUnit
Source§impl PartialEq for DistanceUnit
impl PartialEq for DistanceUnit
Source§fn eq(&self, other: &DistanceUnit) -> bool
fn eq(&self, other: &DistanceUnit) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for DistanceUnit
Auto Trait Implementations§
impl Freeze for DistanceUnit
impl RefUnwindSafe for DistanceUnit
impl Send for DistanceUnit
impl Sync for DistanceUnit
impl Unpin for DistanceUnit
impl UnsafeUnpin for DistanceUnit
impl UnwindSafe for DistanceUnit
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