pub struct PathInfo {
pub distance: f32,
pub path: Vec<String>,
pub hop_count: usize,
}Expand description
Path information from shortest path algorithm
Fields§
§distance: f32Total distance/cost
path: Vec<String>Node IDs in the path
hop_count: usizeNumber of hops
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PathInfo
impl RefUnwindSafe for PathInfo
impl Send for PathInfo
impl Sync for PathInfo
impl Unpin for PathInfo
impl UnwindSafe for PathInfo
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