pub trait WriteBinaryDep<HostType = Self> {
type Args;
type Output;
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
Required Methods
fn write_dep<C: WriteContext>(
ctxt: &mut C,
val: HostType,
args: Self::Args
) -> Result<Self::Output, WriteError>
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
.