logo
pub trait WriteBinary<HostType = Self> {
    type Output;

    fn write<C: WriteContext>(
        ctxt: &mut C,
        val: HostType
    ) -> Result<Self::Output, WriteError>; }
Expand description

Trait that describes a type that can be written to a WriteContext in binary form.

Required Associated Types

The type of the value returned by write.

Required Methods

Write the binary representation of Self to ctxt.

Implementors