pub struct PlanLength { /* private fields */ }Expand description
A measured plan length in metres, with its evidence.
Implementations§
Source§impl PlanLength
impl PlanLength
Sourcepub fn try_new(
lower: f64,
upper: f64,
evidence: Evidence,
) -> Result<Self, PlanSpanError>
pub fn try_new( lower: f64, upper: f64, evidence: Evidence, ) -> Result<Self, PlanSpanError>
A length known to lie in [lower, upper].
The evidence is exact exactly when the bounds coincide: an interval cannot be exact evidence, and a point cannot be approximate.
Sourcepub fn lower_metres(&self) -> f64
pub fn lower_metres(&self) -> f64
Shortest the length can be, in metres.
Sourcepub fn upper_metres(&self) -> f64
pub fn upper_metres(&self) -> f64
Longest the length can be, in metres.
Trait Implementations§
Source§impl Clone for PlanLength
impl Clone for PlanLength
Source§impl Debug for PlanLength
impl Debug for PlanLength
Source§impl PartialEq for PlanLength
impl PartialEq for PlanLength
impl StructuralPartialEq for PlanLength
Auto Trait Implementations§
impl Freeze for PlanLength
impl RefUnwindSafe for PlanLength
impl Send for PlanLength
impl Sync for PlanLength
impl Unpin for PlanLength
impl UnsafeUnpin for PlanLength
impl UnwindSafe for PlanLength
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