pub struct BmpEncoder;Expand description
BMP encoder.
Implementations§
Source§impl BmpEncoder
impl BmpEncoder
Trait Implementations§
Source§impl Debug for BmpEncoder
impl Debug for BmpEncoder
Source§impl Default for BmpEncoder
impl Default for BmpEncoder
Source§impl ImageEncoder for BmpEncoder
impl ImageEncoder for BmpEncoder
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 BmpEncoder
impl RefUnwindSafe for BmpEncoder
impl Send for BmpEncoder
impl Sync for BmpEncoder
impl Unpin for BmpEncoder
impl UnsafeUnpin for BmpEncoder
impl UnwindSafe for BmpEncoder
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