pub struct MetricRouteEvidence { /* private fields */ }Expand description
A known route and conservative shortest-distance bounds.
Implementations§
Source§impl MetricRouteEvidence
impl MetricRouteEvidence
Sourcepub fn try_new(
shortest_distance: LengthInterval,
waypoints: Vec<MetricPoint>,
traversed_objects: Vec<ObjectId>,
evidence: Evidence,
) -> Result<Self, MetricRoutingError>
pub fn try_new( shortest_distance: LengthInterval, waypoints: Vec<MetricPoint>, traversed_objects: Vec<ObjectId>, evidence: Evidence, ) -> Result<Self, MetricRoutingError>
Validates known-route evidence without upgrading bounded distance to exact.
Sourcepub fn shortest_distance(&self) -> &LengthInterval
pub fn shortest_distance(&self) -> &LengthInterval
Conservative shortest-distance bounds.
Sourcepub fn waypoints(&self) -> &[MetricPoint]
pub fn waypoints(&self) -> &[MetricPoint]
Object-grounded route points in traversal order.
Sourcepub fn traversed_objects(&self) -> &[ObjectId]
pub fn traversed_objects(&self) -> &[ObjectId]
Source-qualified objects traversed by the route.
Trait Implementations§
Source§impl Clone for MetricRouteEvidence
impl Clone for MetricRouteEvidence
Source§fn clone(&self) -> MetricRouteEvidence
fn clone(&self) -> MetricRouteEvidence
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 MetricRouteEvidence
impl Debug for MetricRouteEvidence
Source§impl PartialEq for MetricRouteEvidence
impl PartialEq for MetricRouteEvidence
impl StructuralPartialEq for MetricRouteEvidence
Auto Trait Implementations§
impl Freeze for MetricRouteEvidence
impl RefUnwindSafe for MetricRouteEvidence
impl Send for MetricRouteEvidence
impl Sync for MetricRouteEvidence
impl Unpin for MetricRouteEvidence
impl UnwindSafe for MetricRouteEvidence
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