/// A helper function that construct a leaf from a number.
A helper function that construct a leaf from a number.
A helper function that construct a leaf from a number .
pub fn num<'a>(n: u64) -> LazyTree<'a> {
    LazyTree::<'a>::LazyBlob(Arc::new(move || {
        let mut buf = Vec::with_capacity(10);
        leb128::write::unsigned(&mut buf, n).expect("failed to encode a number as LEB128");
        buf
    }))
}
pub fn num < ' a > ( n : u64 ) -> LazyTree < ' a > { LazyTree :: < ' a > :: LazyBlob ( Arc :: new ( move | | { let mut buf = Vec :: with_capacity ( 10 ) ; leb128 :: write :: unsigned ( & mut buf , n ) . expect ( " " ) ; buf } ) ) }
A helper function that construct a leaf from a number.
A helper function that construct a leaf from a number .
n
u64