pub struct PathResult {
pub status: PathStatus,
pub waypoints: Vec<Vec2>,
pub length: f32,
}Expand description
Result of a pathfinding computation.
Fields§
§status: PathStatus§waypoints: Vec<Vec2>Waypoints from start to goal in world space.
length: f32Total path length.
Implementations§
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 moreSource§impl Debug for PathResult
impl Debug for PathResult
Source§impl<'de> Deserialize<'de> for PathResult
impl<'de> Deserialize<'de> for PathResult
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto 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