pub struct JpegDecoder;Expand description
JPEG decoder.
Implementations§
Source§impl JpegDecoder
impl JpegDecoder
Trait Implementations§
Source§impl Debug for JpegDecoder
impl Debug for JpegDecoder
Source§impl Default for JpegDecoder
impl Default for JpegDecoder
Source§impl ImageDecoder for JpegDecoder
impl ImageDecoder for JpegDecoder
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 JpegDecoder
impl RefUnwindSafe for JpegDecoder
impl Send for JpegDecoder
impl Sync for JpegDecoder
impl Unpin for JpegDecoder
impl UnsafeUnpin for JpegDecoder
impl UnwindSafe for JpegDecoder
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