pub trait PreparedGridSearch {
// Required methods
fn name(&self) -> &'static str;
fn grid(&self) -> &Grid;
fn metadata(&self) -> &PreprocessedGridMetadata;
fn search(&self, request: SearchRequest) -> SearchResult;
}Expand description
Prepared static grid that answers repeated point-to-point search requests.
Holds (or views) immutable walkability / cost data from preprocess. Query
cost models follow the concrete algorithm named in metadata
(for example A* on 4-way grids with per-cell traversal_cost).
Required Methods§
Sourcefn metadata(&self) -> &PreprocessedGridMetadata
fn metadata(&self) -> &PreprocessedGridMetadata
Build-time summary of shape, walkability counts, and cost model labels.
Sourcefn search(&self, request: SearchRequest) -> SearchResult
fn search(&self, request: SearchRequest) -> SearchResult
Point-to-point search on the prepared snapshot.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".