pub struct PathTraceRequest { /* private fields */ }Expand description
How much of a walked polyline lies over each of several objects.
The polyline is a route’s waypoints, such as a nearest-target answer’s; its length and every part of it are measured in plan, as routes are. A part lies over an object where it lies inside the object’s plan footprint, whatever the heights: a walk under a stair lies over it.
Implementations§
Source§impl PathTraceRequest
impl PathTraceRequest
Sourcepub fn try_new(
waypoints: Vec<MetricPoint>,
objects: Vec<ObjectId>,
) -> Result<Self, MetricRoutingError>
pub fn try_new( waypoints: Vec<MetricPoint>, objects: Vec<ObjectId>, ) -> Result<Self, MetricRoutingError>
Creates a request; the objects are sorted and deduplicated, and the answer follows that order.
Sourcepub fn waypoints(&self) -> &[MetricPoint]
pub fn waypoints(&self) -> &[MetricPoint]
The polyline, in walking order.
Sourcepub fn plan_length_metres(&self) -> f64
pub fn plan_length_metres(&self) -> f64
The polyline’s length in plan, in metres.
Trait Implementations§
Source§impl Clone for PathTraceRequest
impl Clone for PathTraceRequest
Source§impl Debug for PathTraceRequest
impl Debug for PathTraceRequest
Source§impl PartialEq for PathTraceRequest
impl PartialEq for PathTraceRequest
impl StructuralPartialEq for PathTraceRequest
Auto Trait Implementations§
impl Freeze for PathTraceRequest
impl RefUnwindSafe for PathTraceRequest
impl Send for PathTraceRequest
impl Sync for PathTraceRequest
impl Unpin for PathTraceRequest
impl UnsafeUnpin for PathTraceRequest
impl UnwindSafe for PathTraceRequest
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