pub struct SignedDistanceInterval { /* private fields */ }Expand description
Inclusive signed offset bounds in canonical metres.
Implementations§
Source§impl SignedDistanceInterval
impl SignedDistanceInterval
pub fn try_new( lower_metres: f64, upper_metres: f64, ) -> Result<Self, FreeSpaceError>
pub fn exact(metres: f64) -> Result<Self, FreeSpaceError>
pub fn lower_metres(&self) -> f64
pub fn upper_metres(&self) -> f64
Trait Implementations§
Source§impl Clone for SignedDistanceInterval
impl Clone for SignedDistanceInterval
Source§fn clone(&self) -> SignedDistanceInterval
fn clone(&self) -> SignedDistanceInterval
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 SignedDistanceInterval
impl Debug for SignedDistanceInterval
Source§impl PartialEq for SignedDistanceInterval
impl PartialEq for SignedDistanceInterval
impl Copy for SignedDistanceInterval
impl StructuralPartialEq for SignedDistanceInterval
Auto Trait Implementations§
impl Freeze for SignedDistanceInterval
impl RefUnwindSafe for SignedDistanceInterval
impl Send for SignedDistanceInterval
impl Sync for SignedDistanceInterval
impl Unpin for SignedDistanceInterval
impl UnwindSafe for SignedDistanceInterval
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