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

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

Write blocks that appear in any order and reorder them before writing.

Implementations

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

pub fn new(
    meta_data: &MetaData,
    chunk_writer: &'w mut W
) -> SortedBlocksWriter<'w, W>
[src]

New sorting writer. Returns None if sorting is not required.

pub fn write_or_stash_chunk(
    &mut self,
    chunk_index_in_file: usize,
    chunk_y_index: usize,
    chunk: Chunk
) -> UnitResult
[src]

Write the chunk or stash it. In the closure, write all chunks that can be written now.

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

Where the chunks will be written to.

Trait Implementations

impl<'w, W: Debug> Debug for SortedBlocksWriter<'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 SortedBlocksWriter<'w, W> where
    W: RefUnwindSafe

impl<'w, W> Send for SortedBlocksWriter<'w, W> where
    W: Send

impl<'w, W> Sync for SortedBlocksWriter<'w, W> where
    W: Sync

impl<'w, W> Unpin for SortedBlocksWriter<'w, W>

impl<'w, W> !UnwindSafe for SortedBlocksWriter<'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.