Skip to main content

DbGet

Trait DbGet 

Source
pub trait DbGet<C: Computation> {
    // 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

Run an incremental computation C and return its output. If C is already cached, no computation will be performed.

Implementors§

Source§

impl<'db, S, C> DbGet<C> for DbHandle<'db, S>
where C: Computation, S: Storage + StorageFor<C>,

Source§

impl<S, C> DbGet<C> for Db<S>
where C: Computation, S: Storage + StorageFor<C>,