pub struct WbmpDecoder;Expand description
WBMP decoder.
WBMP is a simple monochrome image format used in WAP applications.
Implementations§
Source§impl WbmpDecoder
impl WbmpDecoder
Trait Implementations§
Source§impl Default for WbmpDecoder
impl Default for WbmpDecoder
Source§impl ImageDecoder for WbmpDecoder
impl ImageDecoder for WbmpDecoder
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 WbmpDecoder
impl RefUnwindSafe for WbmpDecoder
impl Send for WbmpDecoder
impl Sync for WbmpDecoder
impl Unpin for WbmpDecoder
impl UnsafeUnpin for WbmpDecoder
impl UnwindSafe for WbmpDecoder
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