pub enum QoiDecoderProgress<const N: usize> {
Unfinished((QoiDecoder, [u8; N])),
Finished(([u8; N], usize)),
}Expand description
Indicates whether the QoiDecoder is finished.
Variants§
Unfinished((QoiDecoder, [u8; N]))
Returns QoiDecoder for further processing and the filled output buffer.
The output buffer must be divisible by 4 which means it will always be full with new 4 byte RGBA pixel data.
Finished(([u8; N], usize))
Returns the output buffer and the amount of bytes that should be considered as free space.
Auto Trait Implementations§
impl<const N: usize> Freeze for QoiDecoderProgress<N>
impl<const N: usize> RefUnwindSafe for QoiDecoderProgress<N>
impl<const N: usize> Send for QoiDecoderProgress<N>
impl<const N: usize> Sync for QoiDecoderProgress<N>
impl<const N: usize> Unpin for QoiDecoderProgress<N>
impl<const N: usize> UnwindSafe for QoiDecoderProgress<N>
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