Open
Description
I'm interest in having a trait that return the number of bits of T
, std only have associated constant, u8::BITS
. Similar to num::Bounded
.
Alternative, let n_bits = std::mem::size_of::<T>() * u8::BITS as usize;
.
Metadata
Metadata
Assignees
Labels
No labels