Struct image::codecs::openexr::OpenExrEncoder
source · pub struct OpenExrEncoder<W>(W);
Expand description
A thin wrapper that implements ImageEncoder
for OpenEXR images. Will behave like image::codecs::openexr::write_buffer
.
Tuple Fields§
§0: W
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>
impl<W> ImageEncoder for OpenExrEncoder<W>
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.
Assumes the writer is buffered. In most cases, you should wrap your writer in a BufWriter
for best performance.
Auto Trait Implementations§
impl<W> Freeze for OpenExrEncoder<W>where
W: Freeze,
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more