#[non_exhaustive]pub enum SpeedUnits {
MetersPerSecond,
MilesPerHour,
KilometersPerHour,
Knots,
}
Expand description
Represents a specific speed 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.
MetersPerSecond
SI Base Unit for Speed - MetersPerSecond
MilesPerHour
Miles Per Hour
KilometersPerHour
Kilometers Per Hour
Knots
Nautical Mile per hour
Trait Implementations§
Source§impl Clone for SpeedUnits
impl Clone for SpeedUnits
Source§fn clone(&self) -> SpeedUnits
fn clone(&self) -> SpeedUnits
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 SpeedUnits
impl Debug for SpeedUnits
Source§impl Default for SpeedUnits
impl Default for SpeedUnits
Source§fn default() -> SpeedUnits
fn default() -> SpeedUnits
Returns the “default value” for a type. Read more
Source§impl FromUnits<f32> for SpeedUnits
impl FromUnits<f32> for SpeedUnits
Source§impl FromUnits<f64> for SpeedUnits
impl FromUnits<f64> for SpeedUnits
Source§impl PartialEq for SpeedUnits
impl PartialEq for SpeedUnits
Source§impl Unit<SpeedUnits> for &Speed
impl Unit<SpeedUnits> for &Speed
Source§impl Unit<SpeedUnits> for &mut Speed
impl Unit<SpeedUnits> for &mut Speed
Source§impl Unit<SpeedUnits> for Speed
impl Unit<SpeedUnits> for Speed
Source§impl UnitStruct<SpeedUnits> for &Speed
impl UnitStruct<SpeedUnits> for &Speed
Source§impl UnitStruct<SpeedUnits> for &mut Speed
impl UnitStruct<SpeedUnits> for &mut Speed
Source§impl UnitStruct<SpeedUnits> for Speed
impl UnitStruct<SpeedUnits> for Speed
impl Copy for SpeedUnits
impl Eq for SpeedUnits
impl StructuralPartialEq for SpeedUnits
Auto Trait Implementations§
impl Freeze for SpeedUnits
impl RefUnwindSafe for SpeedUnits
impl Send for SpeedUnits
impl Sync for SpeedUnits
impl Unpin for SpeedUnits
impl UnwindSafe for SpeedUnits
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