pub trait GetByKey<Key, Value> {
    // Required method
    fn get(k: &Key) -> Value;
}
Expand description

A trait for querying a value by a key.

Required Methods§

source

fn get(k: &Key) -> Value

Return the value.

Object Safety§

This trait is not object safe.

Implementors§