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§
sourcetype ReturnedType<'a>: Send + Sync
type ReturnedType<'a>: Send + Sync
Denote the returned type when loaded from the config bag
sourcetype StoredType: Send + Sync + Debug
type StoredType: Send + Sync + Debug
Denote the stored type when stored into the config bag
Required Methods§
sourcefn merge_iter(iter: ItemIter<'_, Self>) -> Self::ReturnedType<'_>
fn merge_iter(iter: ItemIter<'_, Self>) -> Self::ReturnedType<'_>
Create a returned type from an iterable of items
Object Safety§
This trait is not object safe.