pub struct Elevation(/* private fields */);Expand description
An elevation, in meters, above or below an undefined reference level.
Implementations§
Source§impl Elevation
impl Elevation
Sourcepub fn zero() -> Self
pub fn zero() -> Self
Zero is ambiguous as an elevation, since it could represent either sea level, or the ground level at the location of interest, or a Geodetic vertical datum.
Sourcepub fn centimeters(value: f64) -> Self
pub fn centimeters(value: f64) -> Self
Construct an elevation in centimeters.
Sourcepub fn kilometers(value: f64) -> Self
pub fn kilometers(value: f64) -> Self
Construct an elevation in kilometers.
Trait Implementations§
Source§impl AsRef<Quantity<dyn Dimension<Th = Z0, M = Z0, T = Z0, Kind = dyn Kind, I = Z0, J = Z0, N = Z0, L = PInt<UInt<UTerm, B1>>>, dyn Units<f64, time = second, mass = kilogram, amount_of_substance = mole, electric_current = ampere, length = meter, luminous_intensity = candela, thermodynamic_temperature = kelvin>, f64>> for Elevation
impl AsRef<Quantity<dyn Dimension<Th = Z0, M = Z0, T = Z0, Kind = dyn Kind, I = Z0, J = Z0, N = Z0, L = PInt<UInt<UTerm, B1>>>, dyn Units<f64, time = second, mass = kilogram, amount_of_substance = mole, electric_current = ampere, length = meter, luminous_intensity = candela, thermodynamic_temperature = kelvin>, f64>> for Elevation
Source§impl<'de> Deserialize<'de> for Elevation
impl<'de> Deserialize<'de> for Elevation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for Elevation
impl Ord for Elevation
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for Elevation
impl PartialOrd for Elevation
Source§impl TryFrom<Quantity<dyn Dimension<Th = Z0, M = Z0, T = Z0, Kind = dyn Kind, I = Z0, J = Z0, N = Z0, L = PInt<UInt<UTerm, B1>>>, dyn Units<f64, time = second, mass = kilogram, amount_of_substance = mole, electric_current = ampere, length = meter, luminous_intensity = candela, thermodynamic_temperature = kelvin>, f64>> for Elevation
impl TryFrom<Quantity<dyn Dimension<Th = Z0, M = Z0, T = Z0, Kind = dyn Kind, I = Z0, J = Z0, N = Z0, L = PInt<UInt<UTerm, B1>>>, dyn Units<f64, time = second, mass = kilogram, amount_of_substance = mole, electric_current = ampere, length = meter, luminous_intensity = candela, thermodynamic_temperature = kelvin>, f64>> for Elevation
impl Copy for Elevation
impl Eq for Elevation
impl StructuralPartialEq for Elevation
Auto Trait Implementations§
impl Freeze for Elevation
impl !RefUnwindSafe for Elevation
impl Send for Elevation
impl Sync for Elevation
impl Unpin for Elevation
impl UnsafeUnpin for Elevation
impl !UnwindSafe for Elevation
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