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,

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

fn borrow_mut(&mut self) -> &mut T

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

fn from(t: T) -> T

Returns the argument unchanged.

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

const ALIGN: usize = _;
type Init = T;
unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)

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>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>