#[non_exhaustive]pub enum PreprocessedGridBuildError {
Hierarchical(HierarchicalGridBuildError),
NonUniformCost {
algorithm: &'static str,
point: Point,
cost: usize,
},
}Expand description
Error returned when static grid preprocessing fails.
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.
Hierarchical(HierarchicalGridBuildError)
Hierarchical / HPA*-style prep nested under the preprocessed-grid surface.
NonUniformCost
Algorithm requires unit costs on every walkable cell.
Trait Implementations§
Source§impl Clone for PreprocessedGridBuildError
impl Clone for PreprocessedGridBuildError
Source§fn clone(&self) -> PreprocessedGridBuildError
fn clone(&self) -> PreprocessedGridBuildError
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 moreSource§impl Debug for PreprocessedGridBuildError
impl Debug for PreprocessedGridBuildError
Source§impl Display for PreprocessedGridBuildError
impl Display for PreprocessedGridBuildError
impl Eq for PreprocessedGridBuildError
Source§impl Error for PreprocessedGridBuildError
impl Error for PreprocessedGridBuildError
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 From<HierarchicalGridBuildError> for PreprocessedGridBuildError
impl From<HierarchicalGridBuildError> for PreprocessedGridBuildError
Source§fn from(source: HierarchicalGridBuildError) -> Self
fn from(source: HierarchicalGridBuildError) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for PreprocessedGridBuildError
Auto Trait Implementations§
impl Freeze for PreprocessedGridBuildError
impl RefUnwindSafe for PreprocessedGridBuildError
impl Send for PreprocessedGridBuildError
impl Sync for PreprocessedGridBuildError
impl Unpin for PreprocessedGridBuildError
impl UnsafeUnpin for PreprocessedGridBuildError
impl UnwindSafe for PreprocessedGridBuildError
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