ChunkReadStorage

Trait ChunkReadStorage 

Source
pub trait ChunkReadStorage<N, Ch> {
    // Required method
    fn get(&self, key: ChunkKey<N>) -> Option<&Ch>;
}
Expand description

Methods for reading chunks from storage.

Required Methods§

Source

fn get(&self, key: ChunkKey<N>) -> Option<&Ch>

Borrow the chunk at key.

Implementations on Foreign Types§

Source§

impl<'a, N, Ch, T> ChunkReadStorage<N, Ch> for &'a T
where T: 'a + ChunkReadStorage<N, Ch> + ?Sized,

Source§

fn get(&self, key: ChunkKey<N>) -> Option<&Ch>

Source§

impl<'a, N, Ch, T> ChunkReadStorage<N, Ch> for &'a mut T
where T: 'a + ChunkReadStorage<N, Ch> + ?Sized,

Source§

fn get(&self, key: ChunkKey<N>) -> Option<&Ch>

Source§

impl<N, Ch> ChunkReadStorage<N, Ch> for AHashMap<ChunkKey<N>, Ch>
where ChunkKey<N>: Hash + Eq,

Source§

fn get(&self, key: ChunkKey<N>) -> Option<&Ch>

Implementors§

Source§

impl<'a, N, Compr> ChunkReadStorage<N, <Compr as Compression>::Data> for CompressibleChunkStorageReader<'a, N, Compr>
where ChunkKey<N>: Clone + Eq + Hash, Compr: Compression,