pub struct RouteSegment {
pub edge: EdgeId,
pub distance: f64,
pub travel_time: f64,
pub monetary_cost: f64,
pub instruction: Option<String>,
pub turn_angle: Option<f64>,
}Expand description
A route segment
Fields§
§edge: EdgeIdEdge ID
distance: f64Distance in this segment
travel_time: f64Travel time in this segment (seconds)
monetary_cost: f64Monetary cost for this segment
instruction: Option<String>Instructions (e.g., “Turn left on Main St”)
turn_angle: Option<f64>Turn angle at the end of this segment (degrees, 0=straight, positive=left, negative=right)
Trait Implementations§
Source§impl Clone for RouteSegment
impl Clone for RouteSegment
Source§fn clone(&self) -> RouteSegment
fn clone(&self) -> RouteSegment
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for RouteSegment
impl RefUnwindSafe for RouteSegment
impl Send for RouteSegment
impl Sync for RouteSegment
impl Unpin for RouteSegment
impl UnsafeUnpin for RouteSegment
impl UnwindSafe for RouteSegment
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