Struct image::codecs::openexr::OpenExrEncoder
source · pub struct OpenExrEncoder<W>(/* private fields */);
Expand description
A thin wrapper that implements ImageEncoder
for OpenEXR images. Will behave like image::codecs::openexr::write_buffer
.
Implementations§
source§impl<W> OpenExrEncoder<W>
impl<W> OpenExrEncoder<W>
Trait Implementations§
source§impl<W: Debug> Debug for OpenExrEncoder<W>
impl<W: Debug> Debug for OpenExrEncoder<W>
source§impl<W> ImageEncoder for OpenExrEncoder<W>where
W: Write + Seek,
impl<W> ImageEncoder for OpenExrEncoder<W>where W: Write + Seek,
source§fn write_image(
self,
buf: &[u8],
width: u32,
height: u32,
color_type: ColorType
) -> ImageResult<()>
fn write_image( self, buf: &[u8], width: u32, height: u32, color_type: ColorType ) -> ImageResult<()>
Writes the complete image.
Returns an Error if it has an invalid length.
Assumes the writer is buffered. In most cases,
you should wrap your writer in a BufWriter
for best performance.
Auto Trait Implementations§
impl<W> RefUnwindSafe for OpenExrEncoder<W>where W: RefUnwindSafe,
impl<W> Send for OpenExrEncoder<W>where W: Send,
impl<W> Sync for OpenExrEncoder<W>where W: Sync,
impl<W> Unpin for OpenExrEncoder<W>where W: Unpin,
impl<W> UnwindSafe for OpenExrEncoder<W>where W: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more