pub struct Depth(/* private fields */);Implementations§
Source§impl Depth
impl Depth
Sourcepub fn new(value: f64) -> Result<Self, ElevationValueError>
pub fn new(value: f64) -> Result<Self, ElevationValueError>
Creates a non-negative depth value in meters.
§Errors
Returns ElevationValueError::NonFinite when the value is not finite.
Returns ElevationValueError::NegativeDepth when the value is negative.
pub const fn meters(self) -> f64
Trait Implementations§
Source§impl PartialOrd for Depth
impl PartialOrd for Depth
impl Copy for Depth
impl StructuralPartialEq for Depth
Auto Trait Implementations§
impl Freeze for Depth
impl RefUnwindSafe for Depth
impl Send for Depth
impl Sync for Depth
impl Unpin for Depth
impl UnsafeUnpin for Depth
impl UnwindSafe for Depth
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