Struct SequentialBlocksCompressor

#[must_use]
pub struct SequentialBlocksCompressor<'w, W> { /* private fields */ }

Compress blocks to a chunk writer in this thread.

Implementations

impl<'w, W> SequentialBlocksCompressor<'w, W> where W: 'w + ChunksWriter,

fn new(meta: &'w MetaData, chunks_writer: &'w mut W) -> Self

New blocks writer.

fn inner_chunks_writer(&'w self) -> &'w W

This is where the compressed blocks are written to.

fn compress_block(&mut self, index_in_header_increasing_y: usize, block: UncompressedBlock) -> UnitResult

Compress a single block immediately. The index of the block must be in increasing line order.

Trait Implementations

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

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

Auto Trait Implementations

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

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

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

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

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

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

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

Blanket Implementations

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

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

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

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

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

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

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

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

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

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

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