gistools/data_store/
mod.rs

1/// Sort files with key-value file pairs that are stored in files. Keys are uint64s.
2#[cfg(feature = "std")]
3pub mod external_sort;
4/// File based reader used by KV, MultiMap, and Vector
5#[cfg(feature = "std")]
6pub mod file;
7/// Key-Value Store (KV)
8pub mod kv;
9/// MultiMap - Key with multiple values Store
10pub mod multimap;
11/// Vector Store - Essentially a Vec that enforces an id-value pairing
12pub mod vector;
13
14use crate::geometry::S2CellId;
15use core::cmp::Ord;
16#[cfg(feature = "std")]
17pub use external_sort::*;
18pub use kv::*;
19pub use multimap::*;
20pub use vector::*;
21
22/// U64 is a type that can be converted to and from u64
23pub trait U64: Ord + Copy + Clone + Default + From<u64> + Into<u64> {}
24impl U64 for u64 {}
25impl U64 for S2CellId {}