rudy 0.0.1

Judy array implementation in pure Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
use super::innerptr::{InnerPtr, IntoPtr};
use ::Key;
use ::rudymap::results::InsertResult;

pub trait JpmNode<K: Key, V> {
    fn get(&self, key: &[u8]) -> Option<&V>;
    fn get_mut(&mut self, key: &[u8]) -> Option<&mut V>;
    fn insert(&mut self, key: &[u8], value: V)
              -> InsertResult<V>;
    fn expand(self, population: usize, key: &[u8], value: V) -> InnerPtr<K, V>;
}