Trait InternalStorageApi

Source
pub trait InternalStorageApi<T> {
    // Required methods
    fn bounds(&self) -> (Option<usize>, Option<usize>);
    fn insert(&mut self, index: usize, item: T);
    fn reserve(&mut self, len: usize);
}
Expand description

Dyn-Compatible subset of Storage trait

Automatically derived for every Storage implementor.

Required Methods§

Source

fn bounds(&self) -> (Option<usize>, Option<usize>)

Source

fn insert(&mut self, index: usize, item: T)

Source

fn reserve(&mut self, len: usize)

Implementors§

Source§

impl<T, S: Storage<T>> InternalStorageApi<T> for S