Skip to main content

Store

Trait 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

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

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

Source§

type Key = Key<T>