WriteTo

Trait WriteTo 

Source
pub trait WriteTo {
    type Input<'a>: Sized;

    // Required method
    fn write_to<W: Write>(input: &Self::Input<'_>, out: W) -> Result<()>;
}

Required Associated Types§

Source

type Input<'a>: Sized

Required Methods§

Source

fn write_to<W: Write>(input: &Self::Input<'_>, out: W) -> Result<()>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl WriteTo for Buffer

Source§

type Input<'a> = &'a [u8]

Source§

impl WriteTo for NullTerminatedString

Source§

type Input<'a> = &'a str

Source§

impl<B: AsRef<[u8]>, T: WriteTo<Input<'static>: ToUsize>, Item> WriteTo for List<B, T, Item>

Source§

type Input<'b> = List<B, T, Item>

Source§

impl<B: AsRef<[u8]>, T: WriteTo<Input<'static>: ToUsize>, Item> WriteTo for Array<B, T, Item>

Source§

type Input<'b> = Array<B, T, Item>

Source§

impl<B: AsRef<[u8]>, T: WriteTo<Input<'static>: ToUsize>, S: WriteTo<Input<'static>: ToUsize>, Item> WriteTo for Sized<B, T, S, Item>

Source§

type Input<'b> = List<B, T, Item>

Source§

impl<T: WriteTo> WriteTo for ValueBE<T>

Source§

type Input<'a> = T

Source§

impl<T: WriteTo> WriteTo for ValueLE<T>

Source§

type Input<'a> = T

Source§

impl<T: WriteTo> WriteTo for Optional<T>

Source§

type Input<'a> = Option<<T as WriteTo>::Input<'a>>

Source§

impl<T: WriteTo<Input<'static>: ToUsize>> WriteTo for VarcharString<T>

Source§

type Input<'a> = &'a str