pub fn encode(values: impl IntoIterator<Item = u64>) -> Result<Vec<u8>, String>Expand description
Encodes a set of integers with the branching factor giving the shortest
data, preferring the smaller factor on ties (encode). Fails if the largest
value needs too tall a tree.