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
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,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for SortedBlocksWriter<'w, W>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for SortedBlocksWriter<'w, W>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for SortedBlocksWriter<'w, W>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> Pointable for SortedBlocksWriter<'w, W>
const ALIGN: usize = _;type Init = T;unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
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>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for SortedBlocksWriter<'w, W>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for SortedBlocksWriter<'w, W>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>