Struct QoiEncoder

pub struct QoiEncoder<W> { /* private fields */ }

QOI encoder

Implementations

impl<W: Write> QoiEncoder<W>

fn new(writer: W) -> Self

Creates a new encoder that writes its output to writer

Trait Implementations

impl<W: Write> ImageEncoder for QoiEncoder<W>

fn write_image(self, buf: &[u8], width: u32, height: u32, color_type: ExtendedColorType) -> ImageResult<()>

Auto Trait Implementations

impl<W> Freeze for QoiEncoder<W> where W: Freeze,

impl<W> RefUnwindSafe for QoiEncoder<W> where W: RefUnwindSafe,

impl<W> Send for QoiEncoder<W> where W: Send,

impl<W> Sync for QoiEncoder<W> where W: Sync,

impl<W> Unpin for QoiEncoder<W> where W: Unpin,

impl<W> UnsafeUnpin for QoiEncoder<W> where W: UnsafeUnpin,

impl<W> UnwindSafe for QoiEncoder<W> where W: UnwindSafe,

Blanket Implementations

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for QoiEncoder<W> where ST: ?Sized, DT: ?Sized,

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for QoiEncoder<W> where ST: ?Sized, DT: ?Sized,

impl<T> Any for QoiEncoder<W> where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for QoiEncoder<W> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for QoiEncoder<W> where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> From<T> for QoiEncoder<W>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> IntoEither for QoiEncoder<W>

impl<T> Pointable for QoiEncoder<W>

const ALIGN: usize = _;
type Init = T;
unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)

impl<T> Read<Exclusive, BecauseExclusive> for QoiEncoder<W> where T: ?Sized,

impl<T, U> Into<U> for QoiEncoder<W> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for QoiEncoder<W> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for QoiEncoder<W> where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>