Struct exr::block::writer::SequentialBlocksCompressor[][src]

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

Compress blocks to a chunk writer in this thread.

Implementations

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

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

New blocks writer.

pub fn inner_chunks_writer(&'w self) -> &'w W[src]

This is where the compressed blocks are written to.

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

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>[src]

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

Formats the value using the given formatter. Read more

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.