Enum cheap_ruler::DistanceUnit
source · 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 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 DistanceUnit
impl Debug for DistanceUnit
source§impl PartialEq for DistanceUnit
impl PartialEq for DistanceUnit
source§fn eq(&self, other: &DistanceUnit) -> bool
fn eq(&self, other: &DistanceUnit) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DistanceUnit
impl Eq for DistanceUnit
impl StructuralEq for DistanceUnit
impl StructuralPartialEq for DistanceUnit
Auto Trait Implementations§
impl RefUnwindSafe for DistanceUnit
impl Send for DistanceUnit
impl Sync for DistanceUnit
impl Unpin 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