pub trait StorageComponent {
type Item;
type SliceOutput<'a>
where Self::Item: 'a;
type SliceOutputMut<'a>
where Self::Item: 'a;
}Expand description
Trait implemented by storage components.
Required Associated Types§
Sourcetype SliceOutput<'a>
where
Self::Item: 'a
type SliceOutput<'a> where Self::Item: 'a
Type used when working with non-mutable slices.
Sourcetype SliceOutputMut<'a>
where
Self::Item: 'a
type SliceOutputMut<'a> where Self::Item: 'a
Type used when working with non-mutable slices.
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.
Implementors§
Source§impl<'buf, T, const N: usize> StorageComponent for StackStorage<'buf, T, N>
impl<'buf, T, const N: usize> StorageComponent for StackStorage<'buf, T, N>
Source§impl<T> StorageComponent for HeapStorage<T>
Available on crate feature alloc only.
impl<T> StorageComponent for HeapStorage<T>
Available on crate feature
alloc only.Source§impl<T> StorageComponent for VmemStorage<T>
Available on crate feature vmem and Unix and crate feature alloc only.
impl<T> StorageComponent for VmemStorage<T>
Available on crate feature
vmem and Unix and crate feature alloc only.