Struct gst::gst::Gst
[−]
[src]
pub struct Gst<K: GstKey, V> { /* fields omitted */ }
Gst
is a tree similar to a B+ tree but using a GstKey
instead of requiring that the key
implements Ord
Methods
impl<K: GstKey, V> Gst<K, V>
[src]
fn new() -> Self
Create a new Gst
fn insert(&mut self, key: K, value: V)
Insert a Key and associated Value into the Gst.
fn get(&self, key: &K) -> Vec<(&K, &V)>
Retrieve all the keys and values inside a region.
fn remove(&mut self, key: &K) -> Result<(K, V), Error>
Remove an item based on an exact key match.
Returns the Key and Value on success, otherwise Error::NotFound