pub trait Store: Sized + Send + Sync + 'static {
    type ReturnedType<'a>: Send + Sync;
    type StoredType: Send + Sync + Debug;

    // Required method
    fn merge_iter(iter: ItemIter<'_, Self>) -> Self::ReturnedType<'_>;
}
Expand description

Trait defining how types can be stored and loaded from the config bag

Required Associated Types§

Required Methods§

source

fn merge_iter(iter: ItemIter<'_, Self>) -> Self::ReturnedType<'_>

Create a returned type from an iterable of items

Implementors§

source§

impl<U: Send + Sync + Debug + 'static> Store for StoreAppend<U>

§

type ReturnedType<'a> = AppendItemIter<'a, U>

§

type StoredType = Value<Vec<U, Global>>

source§

impl<U: Send + Sync + Debug + 'static> Store for StoreReplace<U>

§

type ReturnedType<'a> = Option<&'a U>

§

type StoredType = Value<U>