pub struct ModalRoute {
pub nodes: Vec<NodeId>,
pub total_cost: f64,
}Expand description
Resulting route from shortest_path.
Fields§
§nodes: Vec<NodeId>Ordered nodes from start to goal.
total_cost: f64Total cost along the route.
Trait Implementations§
Source§impl Clone for ModalRoute
impl Clone for ModalRoute
Source§fn clone(&self) -> ModalRoute
fn clone(&self) -> ModalRoute
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 moreSource§impl Debug for ModalRoute
impl Debug for ModalRoute
Source§impl PartialEq for ModalRoute
impl PartialEq for ModalRoute
impl StructuralPartialEq for ModalRoute
Auto Trait Implementations§
impl Freeze for ModalRoute
impl RefUnwindSafe for ModalRoute
impl Send for ModalRoute
impl Sync for ModalRoute
impl Unpin for ModalRoute
impl UnsafeUnpin for ModalRoute
impl UnwindSafe for ModalRoute
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