Trait DbGet

Source
pub trait DbGet<C: OutputType> {
    // Required method
    fn get(&self, key: C) -> C::Output;
}
Expand description

Abstracts over the get function provided by Db<S> and DbHandle<S> to avoid providing get and get_db variants for each function.

Required Methods§

Source

fn get(&self, key: C) -> C::Output

Implementors§

Source§

impl<'db, S, C> DbGet<C> for DbHandle<'db, S>

Source§

impl<S, C> DbGet<C> for Db<S>