Trait qoi::utils::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

Object Safety§

This trait is not object safe.

Implementors§

source§

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

source§

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