[][src]Function huffman_compress::codebook

pub fn codebook<'a, I, K, W>(weights: I) -> (Book<K>, Tree<K>) where
    I: IntoIterator<Item = (&'a K, &'a W)>,
    K: 'a + Ord + Clone,
    W: 'a + Saturating + Ord + Clone