pub trait ValueStoreBuilder {
    type Store;

    // Required methods
    fn build(self) -> Self::Store;
    fn store<T, U>(&mut self, data: T) -> U
       where T: Into<ValueData>,
             U: From<ValueId>;
}

Required Associated Types§

Required Methods§

source

fn build(self) -> Self::Store

Build ValueStore.

source

fn store<T, U>(&mut self, data: T) -> Uwhere T: Into<ValueData>, U: From<ValueId>,

Store the ValueData and return the corresponding ValueId.

Implementors§