pub struct PathResult {
pub path: Vec<u64>,
pub edges: Vec<Edge>,
pub cost: f32,
pub found: bool,
}Expand description
Result of a shortest path query.
Fields§
§path: Vec<u64>Ordered list of node IDs from source to target (inclusive). Empty if no path.
edges: Vec<Edge>Edges traversed along the path.
cost: f32Total path length.
found: boolAuto Trait Implementations§
impl Freeze for PathResult
impl RefUnwindSafe for PathResult
impl Send for PathResult
impl Sync for PathResult
impl Unpin for PathResult
impl UnsafeUnpin for PathResult
impl UnwindSafe for PathResult
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