pub struct PreparedAnyAngleGrid { /* private fields */ }Expand description
Immutable prepared visibility graph for repeated exact any-angle queries.
Holds a grid snapshot, retained vertices, and CSR edges from preprocess. Queries never mutate durable state; start/goal are attached via local overlay edges.
Implementations§
Source§impl PreparedAnyAngleGrid
impl PreparedAnyAngleGrid
Sourcepub fn builder() -> PreparedAnyAngleGridBuilder
pub fn builder() -> PreparedAnyAngleGridBuilder
Returns the matching prepared builder.
Sourcepub fn grid(&self) -> &Grid
pub fn grid(&self) -> &Grid
Owned immutable grid snapshot used for legality and endpoint validation.
Sourcepub fn nodes(&self) -> &[Point2]
pub fn nodes(&self) -> &[Point2]
Retained visibility-graph vertices in deterministic preprocess order.
Sourcepub fn build_diagnostics(&self) -> &PreparedAnyAngleBuildDiagnostics
pub fn build_diagnostics(&self) -> &PreparedAnyAngleBuildDiagnostics
Build-time diagnostics recorded during preprocess.
Sourcepub fn search(
&self,
request: AnyAngleSearchRequest,
) -> Result<SearchOutcome<AnyAnglePath, AnyAngleSearchStats>, AnyAngleSearchError>
pub fn search( &self, request: AnyAngleSearchRequest, ) -> Result<SearchOutcome<AnyAnglePath, AnyAngleSearchStats>, AnyAngleSearchError>
Runs one exact prepared search.
Sourcepub fn search_with_diagnostics(
&self,
request: AnyAngleSearchRequest,
) -> (Result<SearchOutcome<AnyAnglePath, AnyAngleSearchStats>, AnyAngleSearchError>, PreparedAnyAngleQueryDiagnostics)
pub fn search_with_diagnostics( &self, request: AnyAngleSearchRequest, ) -> (Result<SearchOutcome<AnyAnglePath, AnyAngleSearchStats>, AnyAngleSearchError>, PreparedAnyAngleQueryDiagnostics)
Runs one exact prepared search and returns query diagnostics.
Trait Implementations§
Source§impl Clone for PreparedAnyAngleGrid
impl Clone for PreparedAnyAngleGrid
Source§fn clone(&self) -> PreparedAnyAngleGrid
fn clone(&self) -> PreparedAnyAngleGrid
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 PreparedAnyAngleGrid
impl Debug for PreparedAnyAngleGrid
Source§impl PartialEq for PreparedAnyAngleGrid
impl PartialEq for PreparedAnyAngleGrid
impl StructuralPartialEq for PreparedAnyAngleGrid
Auto Trait Implementations§
impl Freeze for PreparedAnyAngleGrid
impl RefUnwindSafe for PreparedAnyAngleGrid
impl Send for PreparedAnyAngleGrid
impl Sync for PreparedAnyAngleGrid
impl Unpin for PreparedAnyAngleGrid
impl UnsafeUnpin for PreparedAnyAngleGrid
impl UnwindSafe for PreparedAnyAngleGrid
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<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