pub trait CodeLen { // Required method fn len(&self, value: u64) -> usize; }
A trait providing a generic method to compute the length of a codeword.
Return the length of the codeword for value.
value
Here we do not depend on the bitstream, so there is no need for a “static” version of the trait.