Trait WriteCappedCtx

Source
pub trait WriteCappedCtx<const CAP: usize, Ctx> {
    // Required method
    fn to_bytes(&self, ctx: Ctx) -> Vec<u8, CAP>;
}
Expand description

A trait for writing a capped amount of data, with context.

Required Methods§

Source

fn to_bytes(&self, ctx: Ctx) -> Vec<u8, CAP>

Implementors§