pub struct JpsPlusBuilder;Expand description
PreprocessedGridBuilder for cardinal JPS+.
Builds a durable jump table so queries avoid rescanning rays. Weighted cost model
matches online super::jump_point_search::JumpPointSearch. Prefer for multi-query
static grids; online JPS for one-shot or frequently edited maps.
Implementations§
Source§impl JpsPlusBuilder
impl JpsPlusBuilder
Sourcepub const fn new() -> JpsPlusBuilder
pub const fn new() -> JpsPlusBuilder
Creates a JPS+ builder (no configuration knobs in v0).
Trait Implementations§
Source§impl Clone for JpsPlusBuilder
impl Clone for JpsPlusBuilder
Source§fn clone(&self) -> JpsPlusBuilder
fn clone(&self) -> JpsPlusBuilder
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 JpsPlusBuilder
Source§impl Debug for JpsPlusBuilder
impl Debug for JpsPlusBuilder
Source§impl Default for JpsPlusBuilder
impl Default for JpsPlusBuilder
Source§fn default() -> JpsPlusBuilder
fn default() -> JpsPlusBuilder
Returns the “default value” for a type. Read more
Source§impl PreprocessedGridBuilder for JpsPlusBuilder
impl PreprocessedGridBuilder for JpsPlusBuilder
Source§type Map = PreparedJpsPlus
type Map = PreparedJpsPlus
Prepared map type this builder produces.
Source§fn preprocess(
&self,
grid: &Grid,
) -> Result<<JpsPlusBuilder as PreprocessedGridBuilder>::Map, PreprocessedGridBuildError>
fn preprocess( &self, grid: &Grid, ) -> Result<<JpsPlusBuilder as PreprocessedGridBuilder>::Map, PreprocessedGridBuildError>
Snapshot
grid into a prepared search structure. Read moreAuto Trait Implementations§
impl Freeze for JpsPlusBuilder
impl RefUnwindSafe for JpsPlusBuilder
impl Send for JpsPlusBuilder
impl Sync for JpsPlusBuilder
impl Unpin for JpsPlusBuilder
impl UnsafeUnpin for JpsPlusBuilder
impl UnwindSafe for JpsPlusBuilder
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