pub trait WriteCappedCtx<const CAP: usize, Ctx> { // Required method fn to_bytes(&self, ctx: Ctx) -> Vec<u8, CAP>; }
A trait for writing a capped amount of data, with context.