pub struct Decameters(pub f64);
Expand description
Length in decameters, usually used for geopotential height.
Tuple Fields§
§0: f64
Implementations§
Source§impl Decameters
impl Decameters
Sourcepub fn max(self, other: Decameters) -> Self
pub fn max(self, other: Decameters) -> Self
Find the maximum for two values
Sourcepub fn min(self, other: Decameters) -> Self
pub fn min(self, other: Decameters) -> Self
Find the minimum for two values
Trait Implementations§
Source§impl<T> Add<T> for Decameters
impl<T> Add<T> for Decameters
Source§impl<T> AddAssign<T> for Decameters
impl<T> AddAssign<T> for Decameters
Source§fn add_assign(&mut self, rhs: T)
fn add_assign(&mut self, rhs: T)
Performs the
+=
operation. Read moreSource§impl Clone for Decameters
impl Clone for Decameters
Source§fn clone(&self) -> Decameters
fn clone(&self) -> Decameters
Returns a duplicate 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 Decameters
impl Debug for Decameters
Source§impl<T> Div<T> for Decameters
impl<T> Div<T> for Decameters
Source§impl Div<f64> for Decameters
impl Div<f64> for Decameters
Source§impl DivAssign<f64> for Decameters
impl DivAssign<f64> for Decameters
Source§fn div_assign(&mut self, rhs: f64)
fn div_assign(&mut self, rhs: f64)
Performs the
/=
operation. Read moreSource§impl From<Cm> for Decameters
impl From<Cm> for Decameters
Source§impl From<Decameters> for Cm
impl From<Decameters> for Cm
Source§fn from(v: Decameters) -> Self
fn from(v: Decameters) -> Self
Converts to this type from the input type.
Source§impl From<Decameters> for Feet
impl From<Decameters> for Feet
Source§fn from(v: Decameters) -> Self
fn from(v: Decameters) -> Self
Converts to this type from the input type.
Source§impl From<Decameters> for Inches
impl From<Decameters> for Inches
Source§fn from(v: Decameters) -> Self
fn from(v: Decameters) -> Self
Converts to this type from the input type.
Source§impl From<Decameters> for Km
impl From<Decameters> for Km
Source§fn from(v: Decameters) -> Self
fn from(v: Decameters) -> Self
Converts to this type from the input type.
Source§impl From<Decameters> for Meters
impl From<Decameters> for Meters
Source§fn from(v: Decameters) -> Self
fn from(v: Decameters) -> Self
Converts to this type from the input type.
Source§impl From<Decameters> for Mm
impl From<Decameters> for Mm
Source§fn from(v: Decameters) -> Self
fn from(v: Decameters) -> Self
Converts to this type from the input type.
Source§impl From<Decameters> for StatuteMiles
impl From<Decameters> for StatuteMiles
Source§fn from(v: Decameters) -> Self
fn from(v: Decameters) -> Self
Converts to this type from the input type.
Source§impl From<Feet> for Decameters
impl From<Feet> for Decameters
Source§impl From<Inches> for Decameters
impl From<Inches> for Decameters
Source§impl From<Km> for Decameters
impl From<Km> for Decameters
Source§impl From<Meters> for Decameters
impl From<Meters> for Decameters
Source§impl From<Mm> for Decameters
impl From<Mm> for Decameters
Source§impl From<StatuteMiles> for Decameters
impl From<StatuteMiles> for Decameters
Source§fn from(v: StatuteMiles) -> Self
fn from(v: StatuteMiles) -> Self
Converts to this type from the input type.
Source§impl Mul<f64> for Decameters
impl Mul<f64> for Decameters
Source§impl MulAssign<f64> for Decameters
impl MulAssign<f64> for Decameters
Source§fn mul_assign(&mut self, rhs: f64)
fn mul_assign(&mut self, rhs: f64)
Performs the
*=
operation. Read moreSource§impl Neg for Decameters
impl Neg for Decameters
Source§impl<T> PartialEq<T> for Decameters
impl<T> PartialEq<T> for Decameters
Source§impl<T> PartialOrd<T> for Decameters
impl<T> PartialOrd<T> for Decameters
Source§impl Quantity for Decameters
impl Quantity for Decameters
Source§fn unwrap(self) -> f64
fn unwrap(self) -> f64
Unwrap the value from the new type and check for validity, panic if contents are invalid.
Source§fn into_option(self) -> Option<f64>
fn into_option(self) -> Option<f64>
Convert into an option that is
None
if the content is invalid.Source§impl<T> Sub<T> for Decameters
impl<T> Sub<T> for Decameters
Source§impl<T> SubAssign<T> for Decameters
impl<T> SubAssign<T> for Decameters
Source§fn sub_assign(&mut self, rhs: T)
fn sub_assign(&mut self, rhs: T)
Performs the
-=
operation. Read moreimpl Copy for Decameters
impl Length for Decameters
Auto Trait Implementations§
impl Freeze for Decameters
impl RefUnwindSafe for Decameters
impl Send for Decameters
impl Sync for Decameters
impl Unpin for Decameters
impl UnwindSafe for Decameters
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