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>where F1: WriteBytes, F1::Output: IntoFmtWriteResult,

source§

impl<F1> WriteBytes for FmtWriter<F1>where F1: WriteBytes, F1::Output: ExpectFmtWriteResult,

source§

impl<F1, F2> WriteBytes for IoTryWriter<F1, F2>where F1: WriteBytes, F1::Output: IntoIoWriteResult,

source§

impl<F1, F2> WriteBytes for IoWriter<F1, F2>where F1: WriteBytes, F1::Output: ExpectIoWriteResult,

source§

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

§

type Output = Output

source§

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

§

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,

§

type Output = R

source§

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

§

type Output = R

source§

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

§

type Output = R

source§

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

§

type Output = R

source§

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

§

type Output = R

source§

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

§

type Output = R