pub struct PathResult {
pub found: bool,
pub path: Vec<u64>,
pub edge_types: Vec<EdgeType>,
pub length: usize,
}Expand description
Result of a shortest-path query.
Fields§
§found: boolWhether a path was found.
path: Vec<u64>The path of unit IDs from source to destination.
edge_types: Vec<EdgeType>Edge types along the path.
length: usizeTotal path length.
Trait Implementations§
Source§impl Clone for PathResult
impl Clone for PathResult
Source§fn clone(&self) -> PathResult
fn clone(&self) -> PathResult
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 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