pub struct ForcedWalkEvidence { /* private fields */ }Expand description
Bounds on the shortest walk entering the object.
Implementations§
Source§impl ForcedWalkEvidence
impl ForcedWalkEvidence
Sourcepub fn try_new(
lower_metres: f64,
upper_metres: f64,
converged: bool,
evidence: Evidence,
) -> Result<Self, MetricRoutingError>
pub fn try_new( lower_metres: f64, upper_metres: f64, converged: bool, evidence: Evidence, ) -> Result<Self, MetricRoutingError>
Validates the bracket: lower_metres finite and non-negative,
upper_metres no less, and infinite when no walk entering the
object is known.
§Errors
MetricRoutingError::InvalidLengthInterval for bounds out of
order, MetricRoutingError::InexactRouteEvidence for provenance
that is not exact.
Sourcepub fn lower_metres(&self) -> f64
pub fn lower_metres(&self) -> f64
No walk entering the object is shorter.
Sourcepub fn upper_metres(&self) -> f64
pub fn upper_metres(&self) -> f64
Some walk entering the object is no longer; infinite when none is known.
Trait Implementations§
Source§impl Clone for ForcedWalkEvidence
impl Clone for ForcedWalkEvidence
Source§impl Debug for ForcedWalkEvidence
impl Debug for ForcedWalkEvidence
Source§impl PartialEq for ForcedWalkEvidence
impl PartialEq for ForcedWalkEvidence
impl StructuralPartialEq for ForcedWalkEvidence
Auto Trait Implementations§
impl Freeze for ForcedWalkEvidence
impl RefUnwindSafe for ForcedWalkEvidence
impl Send for ForcedWalkEvidence
impl Sync for ForcedWalkEvidence
impl Unpin for ForcedWalkEvidence
impl UnsafeUnpin for ForcedWalkEvidence
impl UnwindSafe for ForcedWalkEvidence
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