speedy icon indicating copy to clipboard operation
speedy copied to clipboard

speedy-derive: support derive for structs with const generics

Open andrepd opened this issue 10 months ago • 0 comments

The deriving Readable and Writable now works properly on structs with const generics.

#[derive(speedy::Readable, speedy::Writable)]
pub struct Foo<T, const N: usize> (
  [T; N]
);

andrepd avatar Mar 17 '25 15:03 andrepd