pub trait Store {
// Required methods
fn get(&self, key: &[u8]) -> Option<Vec<u8>>;
fn insert(&mut self, key: &[u8], value: &[u8]);
fn remove(&mut self, key: &[u8]);
}Expand description
Key/value store trait.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".