pub struct PngEncoder;Expand description
PNG encoder.
Implementations§
Source§impl PngEncoder
impl PngEncoder
Trait Implementations§
Source§impl Debug for PngEncoder
impl Debug for PngEncoder
Source§impl Default for PngEncoder
impl Default for PngEncoder
Source§impl ImageEncoder for PngEncoder
impl ImageEncoder for PngEncoder
Source§fn encode<W: Write>(&self, image: &Image, writer: W) -> CodecResult<()>
fn encode<W: Write>(&self, image: &Image, writer: W) -> CodecResult<()>
Encode an image to a writer. Read more
Source§fn format(&self) -> ImageFormat
fn format(&self) -> ImageFormat
Get the format this encoder produces.
Source§fn encode_bytes(&self, image: &Image) -> CodecResult<Vec<u8>>
fn encode_bytes(&self, image: &Image) -> CodecResult<Vec<u8>>
Encode an image to bytes. Read more
Auto Trait Implementations§
impl Freeze for PngEncoder
impl RefUnwindSafe for PngEncoder
impl Send for PngEncoder
impl Sync for PngEncoder
impl Unpin for PngEncoder
impl UnsafeUnpin for PngEncoder
impl UnwindSafe for PngEncoder
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