Module huff_coding::weights[][src]

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.