pub fn replace_chunk(&mut self, index: ChunkIndex, chunk: Chunk) {
        // TODO: we might want to return the replaced chunk...
        self.chunks.insert(index, chunk);
        debug!("inserted chunk at position {:?}", index);
    }
/// Inserts the given chunk into the world and replaces the chunk that
/// might have been at the given position before.
Inserts the given chunk into the world and replaces the chunk that
might have been at the given position before.
Inserts the given chunk into the world and replaces the chunk that might have been at the given position before .
pub fn replace_chunk(&mut self, index: ChunkIndex, chunk: Chunk) {
        // TODO: we might want to return the replaced chunk...
        self.chunks.insert(index, chunk);
        debug!("inserted chunk at position {:?}", index);
    }
pub fn replace_chunk ( & mut self , index : ChunkIndex , chunk : Chunk ) { // TODO: we might want to return the replaced chunk... self . chunks . insert ( index , chunk ) ; debug ! ( " " index ) ; }
Inserts the given chunk into the world and replaces the chunk that
might have been at the given position before.
Inserts the given chunk into the world and replaces the chunk that might have been at the given position before .
&mut self
index
ChunkIndex
chunk
Chunk