#[non_exhaustive]pub enum AnyAngleSearchError {
InvalidStart {
point: Point2,
},
InvalidGoal {
point: Point2,
},
BudgetExhausted(BudgetExhausted),
}Expand description
Invalid any-angle search request or budget hard stop.
Unreachable but valid endpoints produce
SearchOutcome::NoPath, not these variants. Budget exhaustion does not
prove unreachability.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidStart
Start is not a valid free-space position on the grid.
InvalidGoal
Goal is not a valid free-space position on the grid.
BudgetExhausted(BudgetExhausted)
Caller search budget was exhausted before found/no-path completed.
Trait Implementations§
Source§impl Clone for AnyAngleSearchError
impl Clone for AnyAngleSearchError
Source§fn clone(&self) -> AnyAngleSearchError
fn clone(&self) -> AnyAngleSearchError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AnyAngleSearchError
Source§impl Debug for AnyAngleSearchError
impl Debug for AnyAngleSearchError
Source§impl Display for AnyAngleSearchError
impl Display for AnyAngleSearchError
Source§impl Error for AnyAngleSearchError
impl Error for AnyAngleSearchError
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()
Source§impl PartialEq for AnyAngleSearchError
impl PartialEq for AnyAngleSearchError
impl StructuralPartialEq for AnyAngleSearchError
Auto Trait Implementations§
impl Freeze for AnyAngleSearchError
impl RefUnwindSafe for AnyAngleSearchError
impl Send for AnyAngleSearchError
impl Sync for AnyAngleSearchError
impl Unpin for AnyAngleSearchError
impl UnsafeUnpin for AnyAngleSearchError
impl UnwindSafe for AnyAngleSearchError
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