pub struct ElevationInterval { /* private fields */ }Expand description
An elevation in metres, known to lie in [lower, upper].
Implementations§
Source§impl ElevationInterval
impl ElevationInterval
Sourcepub fn try_new(lower: f64, upper: f64) -> Result<Self, VerticalExtentError>
pub fn try_new(lower: f64, upper: f64) -> Result<Self, VerticalExtentError>
An elevation interval; bounds must be finite and ordered.
Sourcepub fn exact(metres: f64) -> Result<Self, VerticalExtentError>
pub fn exact(metres: f64) -> Result<Self, VerticalExtentError>
An elevation known exactly.
Sourcepub fn lower_metres(&self) -> f64
pub fn lower_metres(&self) -> f64
Lowest possible elevation, in metres.
Sourcepub fn upper_metres(&self) -> f64
pub fn upper_metres(&self) -> f64
Highest possible elevation, in metres.
Trait Implementations§
Source§impl Clone for ElevationInterval
impl Clone for ElevationInterval
impl Copy for ElevationInterval
Source§impl Debug for ElevationInterval
impl Debug for ElevationInterval
Source§impl PartialEq for ElevationInterval
impl PartialEq for ElevationInterval
impl StructuralPartialEq for ElevationInterval
Auto Trait Implementations§
impl Freeze for ElevationInterval
impl RefUnwindSafe for ElevationInterval
impl Send for ElevationInterval
impl Sync for ElevationInterval
impl Unpin for ElevationInterval
impl UnsafeUnpin for ElevationInterval
impl UnwindSafe for ElevationInterval
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