Struct SortedBlocksWriter
#[must_use]
pub struct SortedBlocksWriter<'w, W> { /* private fields */ }
Write blocks that appear in any order and reorder them before writing.
Implementations
impl<'w, W> SortedBlocksWriter<'w, W>
where
W: ChunksWriter,
fn new(meta_data: &MetaData, chunk_writer: &'w mut W) -> SortedBlocksWriter<'w, W>New sorting writer. Returns
Noneif sorting is not required.fn write_or_stash_chunk(&mut self, chunk_index_in_file: usize, chunk_y_index: usize, chunk: Chunk) -> UnitResultWrite the chunk or stash it. In the closure, write all chunks that can be written now.
fn inner_chunks_writer(&self) -> &WWhere the chunks will be written to.
Trait Implementations
impl<'w, W: Debug> Debug for SortedBlocksWriter<'w, W>
fn fmt(&self, f: &mut Formatter<'_>) -> Result