pub enum PathError {
OutOfBounds(UVec2),
InvalidCost {
cell: UVec2,
cost: f32,
},
InvalidOptions,
GridTooLarge(UVec2),
NoSearch,
GridResized,
}Expand description
Invalid navigation input.
Variants§
OutOfBounds(UVec2)
A start, goal or query cell is outside the grid.
InvalidCost
A grid reported a cost that is nonfinite or below the allowed minimum.
InvalidOptions
min_cost is not finite and positive, or budget is zero.
GridTooLarge(UVec2)
The grid has more cells than a search can index.
NoSearch
PathFinder::resume was called without a pending search.
GridResized
The grid size changed while a search was pending.
Trait Implementations§
impl Copy for PathError
Source§impl Error for PathError
impl Error for PathError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for PathError
Auto Trait Implementations§
impl Freeze for PathError
impl RefUnwindSafe for PathError
impl Send for PathError
impl Sync for PathError
impl Unpin for PathError
impl UnsafeUnpin for PathError
impl UnwindSafe for PathError
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