pub struct NearestTargetEvidence { /* private fields */ }Expand description
Bounds on the distance to the nearest target, and a route that realises the upper bound.
Implementations§
Source§impl NearestTargetEvidence
impl NearestTargetEvidence
Sourcepub fn try_new(
target: usize,
shortest_distance: LengthInterval,
waypoints: Vec<MetricPoint>,
evidence: Evidence,
) -> Result<Self, MetricRoutingError>
pub fn try_new( target: usize, shortest_distance: LengthInterval, waypoints: Vec<MetricPoint>, evidence: Evidence, ) -> Result<Self, MetricRoutingError>
Validates the answer: target indexes the request’s targets and is
the one the waypoints reach; shortest_distance bounds the distance
to the nearest of all targets, which may be another one.
Sourcepub fn shortest_distance(&self) -> &LengthInterval
pub fn shortest_distance(&self) -> &LengthInterval
Conservative bounds on the distance to the nearest target.
Sourcepub fn waypoints(&self) -> &[MetricPoint]
pub fn waypoints(&self) -> &[MetricPoint]
The route, from the origin to Self::target.
Trait Implementations§
Source§impl Clone for NearestTargetEvidence
impl Clone for NearestTargetEvidence
Source§impl Debug for NearestTargetEvidence
impl Debug for NearestTargetEvidence
Source§impl PartialEq for NearestTargetEvidence
impl PartialEq for NearestTargetEvidence
impl StructuralPartialEq for NearestTargetEvidence
Auto Trait Implementations§
impl Freeze for NearestTargetEvidence
impl RefUnwindSafe for NearestTargetEvidence
impl Send for NearestTargetEvidence
impl Sync for NearestTargetEvidence
impl Unpin for NearestTargetEvidence
impl UnsafeUnpin for NearestTargetEvidence
impl UnwindSafe for NearestTargetEvidence
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