Struct neweden::Kilometers
source · pub struct Kilometers(pub f64);
Tuple Fields§
§0: f64
Trait Implementations§
source§impl Clone for Kilometers
impl Clone for Kilometers
source§fn clone(&self) -> Kilometers
fn clone(&self) -> Kilometers
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 Kilometers
impl Debug for Kilometers
source§impl From<Kilometers> for Meters
impl From<Kilometers> for Meters
source§fn from(other: Kilometers) -> Self
fn from(other: Kilometers) -> Self
Converts to this type from the input type.
source§impl PartialEq<Kilometers> for Kilometers
impl PartialEq<Kilometers> for Kilometers
source§fn eq(&self, other: &Kilometers) -> bool
fn eq(&self, other: &Kilometers) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<Kilometers> for Kilometers
impl PartialOrd<Kilometers> for Kilometers
source§fn partial_cmp(&self, other: &Kilometers) -> Option<Ordering>
fn partial_cmp(&self, other: &Kilometers) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Kilometers
impl StructuralPartialEq for Kilometers
Auto Trait Implementations§
impl RefUnwindSafe for Kilometers
impl Send for Kilometers
impl Sync for Kilometers
impl Unpin for Kilometers
impl UnwindSafe for Kilometers
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