Trait StoreRead
Source pub trait StoreRead<K, V> {
// Required methods
fn get(&self, key: &K) -> Option<V>;
fn len(&self) -> usize;
// Provided method
fn is_empty(&self) -> bool { ... }
}
Returns the value associated with key from the Store
§Arguments:
key: the key indexing the object
§Returns:
Some(value), if the value exists
None otherwise
Returns the number of elements in the Store
Returns true, if the store is empty