WriteBinaryDep

Trait WriteBinaryDep 

Source
pub trait WriteBinaryDep<HostType = Self> {
    type Args;
    type Output;

    // Required method
    fn write_dep<C: WriteContext>(
        ctxt: &mut C,
        val: HostType,
        args: Self::Args,
    ) -> Result<Self::Output, WriteError>;
}
Expand description

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

Required Associated Types§

Source

type Args

The type of the arguments supplied to write_dep.

Source

type Output

The type of the value returned by write_dep.

Required Methods§

Source

fn write_dep<C: WriteContext>( ctxt: &mut C, val: HostType, args: Self::Args, ) -> Result<Self::Output, WriteError>

Write the binary representation of Self to ctxt.

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§