CasperLabs / datasize-rs

Heap memory usage estimation
Other
16 stars 13 forks source link

Implement DataSize for [T; N] using const generics #13

Closed alexmaco closed 1 year ago

alexmaco commented 1 year ago

This is more general and more flexible than the fixed sizes already implemented.

The new implementation is gated by a new const-generics feature flag (and the old one is kept for backwards compatibility), as documented.