pub enum PathMode {
Fastest,
Direct,
}Expand description
How A* weights walkable terrain.
Variants§
Fastest
Minimize travel time using 1 / move_speed_mult (default).
Direct
Minimize geometric length; all walkable cells share the same cost.
Implementations§
Trait Implementations§
impl Copy for PathMode
impl Eq for PathMode
impl StructuralPartialEq for PathMode
Auto Trait Implementations§
impl Freeze for PathMode
impl RefUnwindSafe for PathMode
impl Send for PathMode
impl Sync for PathMode
impl Unpin for PathMode
impl UnsafeUnpin for PathMode
impl UnwindSafe for PathMode
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