pub struct PathResult {
pub source: NodeId,
pub target: NodeId,
pub path: Vec<NodeId>,
pub cost: f64,
}Expand description
Result of a pathfinding algorithm
Fields§
§source: NodeId§target: NodeId§path: Vec<NodeId>§cost: f64Trait 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