Skip to main content

SpatialIndex

Trait SpatialIndex 

Source
pub trait SpatialIndex {
    // Required method
    fn len(&self) -> usize;

    // Provided methods
    fn is_empty(&self) -> bool { ... }
    fn preferred_chunk_size(&self) -> usize { ... }
}
Expand description

Common spatial index operations.

Required Methods§

Source

fn len(&self) -> usize

Returns the number of indexed points.

Provided Methods§

Source

fn is_empty(&self) -> bool

Returns whether the index is empty.

Source

fn preferred_chunk_size(&self) -> usize

Suggested SpatialTensor chunk size for parallel queries.

Implementors§