Struct QoiDecoder
pub struct QoiDecoder<R> { /* private fields */ }
QOI decoder
Implementations
impl<R> QoiDecoder<R>
where
R: Read,
fn new(reader: R) -> ImageResult<Self>Creates a new decoder that decodes from the stream
reader
Trait Implementations
impl<R: Read> ImageDecoder for QoiDecoder<R>
fn dimensions(&self) -> (u32, u32)fn color_type(&self) -> ColorTypefn read_image(self, buf: &mut [u8]) -> ImageResult<()>fn read_image_boxed(self: Box<Self>, buf: &mut [u8]) -> ImageResult<()>
Auto Trait Implementations
impl<R> Freeze for QoiDecoder<R>
where
Decoder<R>: Freeze,
impl<R> RefUnwindSafe for QoiDecoder<R>
where
Decoder<R>: RefUnwindSafe,
impl<R> Send for QoiDecoder<R>
where
Decoder<R>: Send,
impl<R> Sync for QoiDecoder<R>
where
Decoder<R>: Sync,
impl<R> Unpin for QoiDecoder<R>
where
Decoder<R>: Unpin,
impl<R> UnsafeUnpin for QoiDecoder<R>
where
Decoder<R>: UnsafeUnpin,
impl<R> UnwindSafe for QoiDecoder<R>
where
Decoder<R>: UnwindSafe,
Blanket Implementations
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for QoiDecoder<R>
where
ST: ?Sized,
DT: ?Sized,
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for QoiDecoder<R>
where
ST: ?Sized,
DT: ?Sized,
impl<T> Any for QoiDecoder<R>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for QoiDecoder<R>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for QoiDecoder<R>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for QoiDecoder<R>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for QoiDecoder<R>
impl<T> Pointable for QoiDecoder<R>
const ALIGN: usize = _;type Init = T;unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T> Read<Exclusive, BecauseExclusive> for QoiDecoder<R>
where
T: ?Sized,
impl<T, U> Into<U> for QoiDecoder<R>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for QoiDecoder<R>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for QoiDecoder<R>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>