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) -> SelfCreate an
ImageEncoder. Does not write anything yet. Writing later will behave likeimage::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) -> TReturns the argument unchanged.
impl<T> Pointable for OpenExrEncoder<W>
unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T, U> Into for OpenExrEncoder<W>
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses 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
BufWriterfor 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