IntoWrite

Trait IntoWrite 

Source
pub trait IntoWrite {
    type Write: Write;

    // Required method
    fn into_write(self) -> Self::Write;
}
Expand description

Something that can be turned into a writer compatible with Encoder

This is automatically implemented for some standard types, like byte slices and vectors of bytes.

Required Associated Types§

Required Methods§

Source

fn into_write(self) -> Self::Write

Transforms self into a type implementing Write

Implementations on Foreign Types§

Source§

impl IntoWrite for Vec<u8>

Available on crate feature alloc only.
Source§

impl<'a> IntoWrite for &'a mut [u8]

Source§

type Write = SliceMut<'a>

Source§

fn into_write(self) -> Self::Write

Implementors§

Source§

impl<T: Write> IntoWrite for T

Source§

type Write = T