pub struct SequentialBlocksCompressor<'w, W> { /* private fields */ }
Expand description
Compress blocks to a chunk writer in this thread.
Implementations
sourceimpl<'w, W> SequentialBlocksCompressor<'w, W> where
W: 'w + ChunksWriter,
impl<'w, W> SequentialBlocksCompressor<'w, W> where
W: 'w + ChunksWriter,
sourcepub fn inner_chunks_writer(&'w self) -> &'w W
pub fn inner_chunks_writer(&'w self) -> &'w W
This is where the compressed blocks are written to.
sourcepub fn compress_block(
&mut self,
index_in_header_increasing_y: usize,
block: UncompressedBlock
) -> UnitResult
pub 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
Auto Trait Implementations
impl<'w, W> RefUnwindSafe for SequentialBlocksCompressor<'w, W> where
W: RefUnwindSafe,
impl<'w, W> Send for SequentialBlocksCompressor<'w, W> where
W: Send,
impl<'w, W> Sync for SequentialBlocksCompressor<'w, W> where
W: Sync,
impl<'w, W> Unpin for SequentialBlocksCompressor<'w, W>
impl<'w, W> !UnwindSafe for SequentialBlocksCompressor<'w, W>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more