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.