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§