Struct OpenExrEncoder

struct OpenExrEncoder<W>(_)

A thin wrapper that implements ImageEncoder for OpenEXR images. Will behave like image::codecs::openexr::write_buffer.

Implementations

impl<W> OpenExrEncoder<W>

fn new(write: W) -> Self

Create an ImageEncoder. Does not write anything yet. Writing later will behave like image::codecs::openexr::write_buffer.

impl<T> Any for OpenExrEncoder<W>

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for OpenExrEncoder<W>

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for OpenExrEncoder<W>

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

impl<T> From for OpenExrEncoder<W>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> Pointable for OpenExrEncoder<W>

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, U> Into for OpenExrEncoder<W>

fn into(self: 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 for OpenExrEncoder<W>

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

impl<T, U> TryInto for OpenExrEncoder<W>

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

impl<W> Freeze for OpenExrEncoder<W>

impl<W> ImageEncoder for OpenExrEncoder<W>

fn write_image(self: Self, buf: &[u8], width: u32, height: u32, color_type: ExtendedColorType) -> ImageResult<()>

Writes the complete image.

Assumes the writer is buffered. In most cases, you should wrap your writer in a BufWriter for best performance.

impl<W> RefUnwindSafe for OpenExrEncoder<W>

impl<W> Send for OpenExrEncoder<W>

impl<W> Sync for OpenExrEncoder<W>

impl<W> Unpin for OpenExrEncoder<W>

impl<W> UnwindSafe for OpenExrEncoder<W>

impl<W: $crate::fmt::Debug> Debug for OpenExrEncoder<W>

fn fmt(self: &Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result