Trait WriteBytes

Source
pub trait WriteBytes {
    type Output;

    // Required method
    fn write_bytes(&mut self, buf: &[u8]) -> Self::Output;
}
Expand description

A trait for objects which can write bytes returning a specific output.

This trait is used by IoWriter.

Required Associated Types§

Source

type Output

The resulting type after writing.

Required Methods§

Source

fn write_bytes(&mut self, buf: &[u8]) -> Self::Output

Performs byte writing.

Implementors§

Source§

impl<F1> WriteBytes for FmtTryWriter<F1>

Source§

impl<F1> WriteBytes for FmtWriter<F1>

Source§

impl<F1, F2> WriteBytes for IoTryWriter<F1, F2>

Source§

impl<F1, F2> WriteBytes for IoWriter<F1, F2>

Source§

impl<F1, Output> WriteBytes for ConcatTryWriter<F1>
where F1: WriteBytes, F1::Output: IntoConcatWriteResult<Output = Output>,

Source§

type Output = Output

Source§

impl<F1, Output> WriteBytes for ConcatWriter<F1>
where F1: WriteBytes, F1::Output: ExpectConcatWriteResult<Output = Output>,

Source§

type Output = Output

Source§

impl<F, R> WriteBytes for TryWriteCCharPtrFn<F, R>
where F: FnMut(*const c_char) -> R,

Source§

impl<F, R> WriteBytes for TryWriteCStrFn<F, R>
where F: FnMut(&CStr) -> R,

Source§

impl<F, R> WriteBytes for TryWriteCStringFn<F, R>
where F: FnMut(CString) -> R,

Source§

impl<F, R> WriteBytes for WriteBytesFn<F, R>
where F: FnMut(&[u8]) -> R,

Source§

impl<F, R> WriteBytes for WriteCCharPtrFn<F, R>
where F: FnMut(*const c_char) -> R,

Source§

impl<F, R> WriteBytes for WriteCStrFn<F, R>
where F: FnMut(&CStr) -> R,

Source§

impl<F, R> WriteBytes for WriteCStringFn<F, R>
where F: FnMut(CString) -> R,

Source§

impl<F, R> WriteBytes for WriteLenPtrFn<F, R>
where F: FnMut(usize, *const u8) -> R,

Source§

impl<F, R> WriteBytes for WritePtrLenFn<F, R>
where F: FnMut(*const u8, usize) -> R,