Skip to main content

Write

Trait Write 

Source
pub trait Write {
    // Required method
    fn write(&mut self, buf: &[u8]) -> EncodingResult<()>;
}
Expand description

Everything, be it a stream or buffer, which can be encoded into.

Required Methods§

Source

fn write(&mut self, buf: &[u8]) -> EncodingResult<()>

Writes the entire contents of buf.

No guarantees are made about flushing.

Implementations on Foreign Types§

Source§

impl<T: Write> Write for &mut T

Source§

fn write(&mut self, buf: &[u8]) -> EncodingResult<()>

Implementors§

Source§

impl Write for SliceMut<'_>

Source§

impl Write for VecStream

Available on crate feature alloc only.
Source§

impl Write for Zero

Source§

impl<T: Write> Write for Std<T>

Available on crate feature std only.
Source§

impl<T: Write> Write for SizeLimit<T>

Source§

impl<T: Write> Write for SizeTrack<T>