pub struct SpatialSearchOptions {
pub backend: SpatialBackend,
pub automatic: AutoBackendProfile,
pub neighbor_skin: NeighborSkinProfile,
pub cell_grid: CellGridOptions,
pub kd_periodic: KdPeriodicOptions,
}Expand description
Complete options for a one-shot spatial query.
Fields§
§backend: SpatialBackendRequested implementation, including inspectable automatic selection.
automatic: AutoBackendProfileAutomatic backend thresholds.
neighbor_skin: NeighborSkinProfileOne-shot neighbour-list skin rule.
cell_grid: CellGridOptionsCell-grid memory and coarsening policy.
kd_periodic: KdPeriodicOptionsPeriodic k-d tree image-search budget.
Implementations§
Source§impl SpatialSearchOptions
impl SpatialSearchOptions
Sourcepub const fn with_backend(backend: SpatialBackend) -> Self
pub const fn with_backend(backend: SpatialBackend) -> Self
Returns the balanced profile with an explicit backend.
Sourcepub fn validate(self) -> Result<(), SpatialError>
pub fn validate(self) -> Result<(), SpatialError>
Validates all query policy, including branches unused by this workload.
§Errors
Returns the first invalid field.
Sourcepub fn plan(
self,
left_count: usize,
right_count: usize,
cutoff: f32,
) -> Result<SpatialPlan, SpatialError>
pub fn plan( self, left_count: usize, right_count: usize, cutoff: f32, ) -> Result<SpatialPlan, SpatialError>
Produces an inspectable execution plan for one workload shape.
§Errors
Returns an error for invalid profile fields or derived values.
Trait Implementations§
Source§impl Clone for SpatialSearchOptions
impl Clone for SpatialSearchOptions
impl Copy for SpatialSearchOptions
Source§impl Debug for SpatialSearchOptions
impl Debug for SpatialSearchOptions
Source§impl Default for SpatialSearchOptions
impl Default for SpatialSearchOptions
Source§impl PartialEq for SpatialSearchOptions
impl PartialEq for SpatialSearchOptions
impl StructuralPartialEq for SpatialSearchOptions
Auto Trait Implementations§
impl Freeze for SpatialSearchOptions
impl RefUnwindSafe for SpatialSearchOptions
impl Send for SpatialSearchOptions
impl Sync for SpatialSearchOptions
impl Unpin for SpatialSearchOptions
impl UnsafeUnpin for SpatialSearchOptions
impl UnwindSafe for SpatialSearchOptions
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
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