[][src]Struct exr::image::WriteOptions

pub struct WriteOptions<P: OnWriteProgress> {
    pub parallel_compression: bool,
    pub pedantic: bool,
    pub on_progress: P,
}

Specify how to write an exr image.

Fields

parallel_compression: bool

Enable multicore compression.

pedantic: bool

If enabled, writing an image throws errors for files that may look invalid to other exr readers. Should always be true. Only set this to false if you can risk never opening the file with another exr reader again, ever, really.

on_progress: P

Called occasionally while writing a file. The first argument is the progress, a float from 0 to 1. The second argument contains the total number of bytes written. May return Error::Abort to cancel writing the file. Can be a closure accepting a float and a usize, see OnWriteProgress.

Trait Implementations

impl<P: Debug + OnWriteProgress> Debug for WriteOptions<P>[src]

Auto Trait Implementations

impl<P> RefUnwindSafe for WriteOptions<P> where
    P: RefUnwindSafe

impl<P> Send for WriteOptions<P> where
    P: Send

impl<P> Sync for WriteOptions<P> where
    P: Sync

impl<P> Unpin for WriteOptions<P> where
    P: Unpin

impl<P> UnwindSafe for WriteOptions<P> where
    P: UnwindSafe

Blanket Implementations

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

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

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

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

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

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.

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.