[−][src]Struct exr::image::WriteOptions
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,
P: RefUnwindSafe,
impl<P> Send for WriteOptions<P> where
P: Send,
P: Send,
impl<P> Sync for WriteOptions<P> where
P: Sync,
P: Sync,
impl<P> Unpin for WriteOptions<P> where
P: Unpin,
P: Unpin,
impl<P> UnwindSafe for WriteOptions<P> where
P: UnwindSafe,
P: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
ⓘImportant traits for &'_ mut Wfn borrow_mut(&mut self) -> &mut T
[src]
ⓘImportant traits for &'_ mut W
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,