Type Definition building_blocks_storage::SmallKeyHashMap [−][src]
type SmallKeyHashMap<K, V> = AHashMap<K, V>;
Trait Implementations
impl<N, Ch> ChunkReadStorage<N, Ch> for SmallKeyHashMap<ChunkKey<N>, Ch> where
ChunkKey<N>: Hash + Eq,
[src]
impl<N, Ch> ChunkReadStorage<N, Ch> for SmallKeyHashMap<ChunkKey<N>, Ch> where
ChunkKey<N>: Hash + Eq,
[src]impl<N, Ch> ChunkWriteStorage<N, Ch> for SmallKeyHashMap<ChunkKey<N>, Ch> where
ChunkKey<N>: Hash + Eq,
[src]
impl<N, Ch> ChunkWriteStorage<N, Ch> for SmallKeyHashMap<ChunkKey<N>, Ch> where
ChunkKey<N>: Hash + Eq,
[src]fn get_mut_or_insert_with(
&mut self,
key: ChunkKey<N>,
create_chunk: impl FnOnce() -> Ch
) -> &mut Ch
[src]
fn get_mut_or_insert_with(
&mut self,
key: ChunkKey<N>,
create_chunk: impl FnOnce() -> Ch
) -> &mut Ch
[src]Mutably borrow the chunk at key
. If it doesn’t exist, insert the return value of create_chunk
.
Replace the chunk at key
with chunk
, returning the old value.
Overwrite the chunk at key
with chunk
. Drops the previous value.
impl<'a, N, Ch> IterChunkKeys<'a, N> for SmallKeyHashMap<ChunkKey<N>, Ch> where
ChunkKey<N>: 'a,
Ch: 'a,
[src]
impl<'a, N, Ch> IterChunkKeys<'a, N> for SmallKeyHashMap<ChunkKey<N>, Ch> where
ChunkKey<N>: 'a,
Ch: 'a,
[src]