pub trait WriteCtx<'a, Ctx> {
// Required method
fn to_bytes(&self, ctx: Ctx) -> Cow<'a, [u8]>;
}Expand description
A trait for writing data of variable length, with context.
pub trait WriteCtx<'a, Ctx> {
// Required method
fn to_bytes(&self, ctx: Ctx) -> Cow<'a, [u8]>;
}A trait for writing data of variable length, with context.