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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.