pub trait StorageShape<I, T> {
    type Storage;

    // Required method
    fn get_by_idx(storage: &Self::Storage, idx: I) -> Option<&T>;
}

Required Associated Types§

Required Methods§

source

fn get_by_idx(storage: &Self::Storage, idx: I) -> Option<&T>

Implementors§