pub struct SpatialCache { /* private fields */ }Expand description
Spatial-aware cache for geospatial data
Implementations§
Source§impl SpatialCache
impl SpatialCache
Sourcepub fn new(config: CacheConfig, cell_size: f64) -> Self
pub fn new(config: CacheConfig, cell_size: f64) -> Self
Creates a new spatial cache
Sourcepub async fn get_by_bounds(
&self,
bounds: (f64, f64, f64, f64),
) -> Result<Vec<(CacheKey, Bytes)>>
pub async fn get_by_bounds( &self, bounds: (f64, f64, f64, f64), ) -> Result<Vec<(CacheKey, Bytes)>>
Gets entries intersecting a bounding box
Auto Trait Implementations§
impl !Freeze for SpatialCache
impl !RefUnwindSafe for SpatialCache
impl !UnwindSafe for SpatialCache
impl Send for SpatialCache
impl Sync for SpatialCache
impl Unpin for SpatialCache
impl UnsafeUnpin for SpatialCache
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