Trait building_blocks::prelude::ChunkMapBuilder[][src]

pub trait ChunkMapBuilder<N, T> {
    type Chunk: Chunk;
    fn chunk_shape(&self) -> PointN<N>;
fn ambient_value(&self) -> T;
fn new_ambient(&self, extent: ExtentN<N>) -> Self::Chunk; fn build_with_rw_storage<Store>(
        self,
        storage: Store
    ) -> ChunkMap<N, T, Self, Store>
    where
        Store: ChunkReadStorage<N, Self::Chunk> + ChunkWriteStorage<N, Self::Chunk>,
        PointN<N>: IntegerPoint<N>
, { ... }
fn build_with_read_storage<Store>(
        self,
        storage: Store
    ) -> ChunkMap<N, T, Self, Store>
    where
        Store: ChunkReadStorage<N, Self::Chunk>,
        PointN<N>: IntegerPoint<N>
, { ... }
fn build_with_write_storage<Store>(
        self,
        storage: Store
    ) -> ChunkMap<N, T, Self, Store>
    where
        Store: ChunkWriteStorage<N, Self::Chunk>,
        PointN<N>: IntegerPoint<N>
, { ... }
fn build_with_hash_map_storage(
        self
    ) -> ChunkMap<N, T, Self, AHashMap<ChunkKey<N>, Self::Chunk, RandomState>>
    where
        PointN<N>: IntegerPoint<N>,
        ChunkKey<N>: Eq,
        ChunkKey<N>: Hash
, { ... } }
Expand description

An object that knows how to construct chunks for a ChunkMap.

Associated Types

Required methods

Construct a new chunk with entirely ambient values.

Provided methods

Create a new ChunkMap with the given storage which must implement both ChunkReadStorage and ChunkWriteStorage.

Create a new ChunkMap with the given storage which must implement ChunkReadStorage.

Create a new ChunkMap with the given storage which must implement ChunkWriteStorage.

Create a new ChunkMap using a SmallKeyHashMap as the chunk storage.

Implementations on Foreign Types

Implementors