pub struct RawshiftDecoder;Expand description
The rawshift-image-backed Decoder — the only production implementation.
Trait Implementations§
Source§impl Clone for RawshiftDecoder
impl Clone for RawshiftDecoder
Source§fn clone(&self) -> RawshiftDecoder
fn clone(&self) -> RawshiftDecoder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RawshiftDecoder
Source§impl Debug for RawshiftDecoder
impl Debug for RawshiftDecoder
Source§impl Decoder for RawshiftDecoder
impl Decoder for RawshiftDecoder
Source§fn probe(&self, bytes: &[u8], ext: &str) -> Result<MediaMetadata, MediaError>
fn probe(&self, bytes: &[u8], ext: &str) -> Result<MediaMetadata, MediaError>
Read the format, dimensions and orientation from the header without decoding pixels. Read more
Source§fn decode(&self, bytes: &[u8], ext: &str) -> Result<DecodedImage, MediaError>
fn decode(&self, bytes: &[u8], ext: &str) -> Result<DecodedImage, MediaError>
Source§impl Default for RawshiftDecoder
impl Default for RawshiftDecoder
Source§fn default() -> RawshiftDecoder
fn default() -> RawshiftDecoder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RawshiftDecoder
impl RefUnwindSafe for RawshiftDecoder
impl Send for RawshiftDecoder
impl Sync for RawshiftDecoder
impl Unpin for RawshiftDecoder
impl UnsafeUnpin for RawshiftDecoder
impl UnwindSafe for RawshiftDecoder
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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