BoxIndexAccessor

Trait BoxIndexAccessor 

Source
pub trait BoxIndexAccessor {
    // Required method
    fn bbox(&self) -> BBox;

    // Provided method
    fn hilbert(&self, index_bbox: &BBox) -> u64 { ... }
}
Expand description

§Box Index Accessor

§Description

Designed to be used with the BoxIndex.

Has BoxIndexAccessor::bbox and optionally updated BoxIndexAccessor::hilbert to properly index the item for the BoxIndex. hilbert is auto-generated for items whre you only supplied the BoxIndexAccessor::bbox. Note that LonLat and S2Point implements the S2CellId hilbert curve for sorting.

Required Methods§

Source

fn bbox(&self) -> BBox

Get the bounding box of the item

Provided Methods§

Source

fn hilbert(&self, index_bbox: &BBox) -> u64

Get the hilbert value of the item

Implementations on Foreign Types§

Source§

impl<M: Clone + Default> BoxIndexAccessor for VectorPoint<M>

Source§

fn bbox(&self) -> BBox

Source§

fn hilbert(&self, _index_bbox: &BBox) -> u64

Implementors§