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 None if sorting is not required.

fn write_or_stash_chunk(&mut self, chunk_index_in_file: usize, chunk_y_index: usize, chunk: Chunk) -> UnitResult

Write the chunk or stash it. In the closure, write all chunks that can be written now.

fn inner_chunks_writer(&self) -> &W

Where the chunks will be written to.

Trait Implementations

impl<'w, W: Debug> Debug for SortedBlocksWriter<'w, W>

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl<'w, W> !UnwindSafe for SortedBlocksWriter<'w, W>

impl<'w, W> Freeze for SortedBlocksWriter<'w, W> where &'w mut W: Freeze,

impl<'w, W> RefUnwindSafe for SortedBlocksWriter<'w, W> where &'w mut W: RefUnwindSafe,

impl<'w, W> Send for SortedBlocksWriter<'w, W> where &'w mut W: Send,

impl<'w, W> Sync for SortedBlocksWriter<'w, W> where &'w mut W: Sync,

impl<'w, W> Unpin for SortedBlocksWriter<'w, W> where &'w mut W: Unpin,

impl<'w, W> UnsafeUnpin for SortedBlocksWriter<'w, W> where &'w mut W: UnsafeUnpin,

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for SortedBlocksWriter<'w, W> where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for SortedBlocksWriter<'w, W> where ST: ?Sized, DT: ?Sized,

impl<T> Any for SortedBlocksWriter<'w, W> where T: 'static + ?Sized,

impl<T> Borrow<T> for SortedBlocksWriter<'w, W> where T: ?Sized,

impl<T> BorrowMut<T> for SortedBlocksWriter<'w, W> where T: ?Sized,

impl<T> From<T> for SortedBlocksWriter<'w, W>

impl<T> Pointable for SortedBlocksWriter<'w, W>

impl<T> Read<Exclusive, BecauseExclusive> for SortedBlocksWriter<'w, W> where T: ?Sized,

impl<T, U> Into<U> for SortedBlocksWriter<'w, W> where U: From<T>,

impl<T, U> TryFrom<U> for SortedBlocksWriter<'w, W> where U: Into<T>,

impl<T, U> TryInto<U> for SortedBlocksWriter<'w, W> where U: TryFrom<T>,