/// Builds a leaf of a labeled tree containing LEB128 encoded integer.
Builds a leaf of a labeled tree containing LEB128 encoded integer.
Builds a leaf of a labeled tree containing LEB128 encoded integer .
pub fn num_leaf(n: u64) -> LabeledTree<Vec<u8>> {
    let mut buf = Vec::with_capacity(MAX_U64_ENCODING_BYTES);
    leb128::write::unsigned(&mut buf, n).unwrap();
    LabeledTree::Leaf(buf)
}
pub fn num_leaf ( n : u64 ) -> LabeledTree < Vec < u8 > > { let mut buf = Vec :: with_capacity ( MAX_U64_ENCODING_BYTES ) ; leb128 :: write :: unsigned ( & mut buf , n ) . unwrap ( ) ; LabeledTree :: Leaf ( buf ) }
Builds a leaf of a labeled tree containing LEB128 encoded integer.
Builds a leaf of a labeled tree containing LEB128 encoded integer .
n
u64