2 ms·
I'm always hitting the limitation that I can't use a const parameter on a trait like a const generic. As an example, this is disallowed: struct Helper<B: Buffe
by rhn_mk1 5y ago
I'm always hitting the limitation that I can't use a const parameter on a trait like a const generic. As an example, this is disallowed:
struct Helper<B: Buffer> {
x: [u8; B::SIZE],
}