pub struct BmpDecoder;Expand description
BMP decoder.
Implementations§
Source§impl BmpDecoder
impl BmpDecoder
Trait Implementations§
Source§impl Debug for BmpDecoder
impl Debug for BmpDecoder
Source§impl Default for BmpDecoder
impl Default for BmpDecoder
Source§impl ImageDecoder for BmpDecoder
impl ImageDecoder for BmpDecoder
Source§fn decode<R: Read>(&self, reader: R) -> CodecResult<Image>
fn decode<R: Read>(&self, reader: R) -> CodecResult<Image>
Decode an image from a reader. Read more
Source§fn format(&self) -> ImageFormat
fn format(&self) -> ImageFormat
Get the format this decoder handles.
Source§fn decode_bytes(&self, data: &[u8]) -> CodecResult<Image>
fn decode_bytes(&self, data: &[u8]) -> CodecResult<Image>
Decode an image from bytes. Read more
Source§fn can_decode(&self, data: &[u8]) -> bool
fn can_decode(&self, data: &[u8]) -> bool
Check if this decoder can handle the given data.
Auto Trait Implementations§
impl Freeze for BmpDecoder
impl RefUnwindSafe for BmpDecoder
impl Send for BmpDecoder
impl Sync for BmpDecoder
impl Unpin for BmpDecoder
impl UnsafeUnpin for BmpDecoder
impl UnwindSafe for BmpDecoder
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