qoi::utils

Trait Writer

Source
pub trait Writer: Sized {
    // Required methods
    fn write_one(self, v: u8) -> Result<Self>;
    fn write_many(self, v: &[u8]) -> Result<Self>;
    fn capacity(&self) -> usize;
}

Required Methods§

Source

fn write_one(self, v: u8) -> Result<Self>

Source

fn write_many(self, v: &[u8]) -> Result<Self>

Source

fn capacity(&self) -> usize

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<'a> Writer for BytesMut<'a>

Source§

impl<W: Write> Writer for GenericWriter<W>