pub struct MemorySpatialIndex { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for MemorySpatialIndex
impl Clone for MemorySpatialIndex
Source§fn clone(&self) -> MemorySpatialIndex
fn clone(&self) -> MemorySpatialIndex
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 MemorySpatialIndex
impl Debug for MemorySpatialIndex
Source§impl Default for MemorySpatialIndex
impl Default for MemorySpatialIndex
Source§fn default() -> MemorySpatialIndex
fn default() -> MemorySpatialIndex
Returns the “default value” for a type. Read more
Source§impl SpatialIndex for MemorySpatialIndex
impl SpatialIndex for MemorySpatialIndex
fn add(&mut self, doc_id: DocId, lon: f64, lat: f64)
fn remove(&mut self, doc_id: DocId)
fn clear(&mut self)
fn search_within( &self, center_lon: f64, center_lat: f64, radius_m: f64, ) -> PostingList
fn count(&self) -> usize
fn snapshot(&self) -> Arc<dyn SpatialIndex> ⓘ
Auto Trait Implementations§
impl Freeze for MemorySpatialIndex
impl RefUnwindSafe for MemorySpatialIndex
impl Send for MemorySpatialIndex
impl Sync for MemorySpatialIndex
impl Unpin for MemorySpatialIndex
impl UnsafeUnpin for MemorySpatialIndex
impl UnwindSafe for MemorySpatialIndex
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