IntoWriter

Trait IntoWriter 

Source
pub trait IntoWriter {
    type Writer: Writer;

    // Required method
    fn into_writer(
        self,
        to_write: usize,
    ) -> Result<Self::Writer, <Self::Writer as Writer>::Error>;
}

Required Associated Types§

Required Methods§

Source

fn into_writer( self, to_write: usize, ) -> Result<Self::Writer, <Self::Writer as Writer>::Error>

Implementations on Foreign Types§

Source§

impl IntoWriter for &mut [u8]

Source§

type Writer = &mut [u8]

Source§

fn into_writer(self, to_write: usize) -> Result<Self, BufferFull>

Source§

impl<const N: usize> IntoWriter for Vec<u8, N>

Source§

type Writer = VecInner<u8, usize, VecStorageInner<[MaybeUninit<u8>; N]>>

Source§

fn into_writer(self, to_write: usize) -> Result<Self, BufferFull>

Implementors§