pub struct ProjectedStop {
pub id: String,
pub original_location: Coord<f64>,
pub projected_location: Coord<f64>,
pub distance_along_route: f64,
pub projection_error: f64,
}Expand description
The output struct representing a stop’s successful projection onto the route.
Fields§
§id: StringThe original stop’s ID.
original_location: Coord<f64>The original stop’s real-world location.
projected_location: Coord<f64>The coordinate of the projection on the route line.
distance_along_route: f64The cumulative distance from the start of the route line to the projected point.
projection_error: f64The geographical distance between the original location and the projected location (projection error).
Trait Implementations§
Source§impl Clone for ProjectedStop
impl Clone for ProjectedStop
Source§impl Debug for ProjectedStop
impl Debug for ProjectedStop
Source§impl PartialEq for ProjectedStop
impl PartialEq for ProjectedStop
impl StructuralPartialEq for ProjectedStop
Auto Trait Implementations§
impl Freeze for ProjectedStop
impl RefUnwindSafe for ProjectedStop
impl Send for ProjectedStop
impl Sync for ProjectedStop
impl Unpin for ProjectedStop
impl UnsafeUnpin for ProjectedStop
impl UnwindSafe for ProjectedStop
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more