Expand description
Trait signifying that the struct stores the weights of a certain type (letter), so that
for any stored letter there is a corresponding usize
(weight).
Re-exports§
pub use self::byte_weights::ByteWeights;
Modules§
- byte_
weights - Struct storing the number of occurences of each byte in a provided byte slice.
Traits§
- Weights
- Trait signifying that the struct stores the weights of a certain type (letter), so that
for any stored letter there is a corresponding
usize
(weight).
Functions§
- build_
weights_ map - Count every letter in the provided slice Returning a
HashMap
of letters to their counts (weights) - build_
weights_ map_ with_ hasher - Count every letter in the provided slice Returning a
HashMap
of letters to their counts (weights), with the provided hash builder.