pub struct StaticPreparedGrid { /* private fields */ }Expand description
Immutable grid snapshot with metadata for repeated online search.
Each PreparedGridSearch::search runs AStar on the owned clone. No
shared open set or cache is retained between queries.
Implementations§
Source§impl StaticPreparedGrid
impl StaticPreparedGrid
Sourcepub fn builder() -> StaticPreparedGridBuilder
pub fn builder() -> StaticPreparedGridBuilder
Convenience constructor for the matching pass-through builder.
Trait Implementations§
Source§impl Clone for StaticPreparedGrid
impl Clone for StaticPreparedGrid
Source§fn clone(&self) -> StaticPreparedGrid
fn clone(&self) -> StaticPreparedGrid
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 StaticPreparedGrid
impl Debug for StaticPreparedGrid
impl Eq for StaticPreparedGrid
Source§impl PartialEq for StaticPreparedGrid
impl PartialEq for StaticPreparedGrid
Source§impl PreparedGridSearch for StaticPreparedGrid
impl PreparedGridSearch for StaticPreparedGrid
Source§fn metadata(&self) -> &PreprocessedGridMetadata
fn metadata(&self) -> &PreprocessedGridMetadata
Build-time summary of shape, walkability counts, and cost model labels.
Source§fn search(
&self,
request: SearchRequest,
) -> Result<SearchOutcome<Path, SearchStats>, GridSearchError>
fn search( &self, request: SearchRequest, ) -> Result<SearchOutcome<Path, SearchStats>, GridSearchError>
Point-to-point search on the prepared snapshot.
impl StructuralPartialEq for StaticPreparedGrid
Auto Trait Implementations§
impl Freeze for StaticPreparedGrid
impl RefUnwindSafe for StaticPreparedGrid
impl Send for StaticPreparedGrid
impl Sync for StaticPreparedGrid
impl Unpin for StaticPreparedGrid
impl UnsafeUnpin for StaticPreparedGrid
impl UnwindSafe for StaticPreparedGrid
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more