Trait hooks_gen::Store

source ·
pub trait Store<T> {
    type Key: Key<Value = T>;

    // Required method
    fn insert(&self, value: T) -> <Self::Key as Key>::Owner;
}

Required Associated Types§

source

type Key: Key<Value = T>

Required Methods§

source

fn insert(&self, value: T) -> <Self::Key as Key>::Owner

Implementors§

source§

impl<T: 'static> Store<T> for Store

§

type Key = Key<T>