pub fn append_crockford_u64_tuple(value: (u64, u64), to_append_to: &mut String)
Expand description

Appends the crockford Base32 representation of the (u64, u64) to to_append_to.

Examples

let mut a_string = String::new();
append_crockford_u64_tuple((0, 1), &mut a_string);
assert_eq!(a_string, "00000000000000000000000001");
let mut a_string = String::new();
append_crockford_u64_tuple((0, 0xFF), &mut a_string);
assert_eq!(a_string, "0000000000000000000000007Z");
let mut a_string = String::new();
append_crockford_u64_tuple((0, 0xFFFF_FFFF_FFFF_FFFF), &mut a_string);
assert_eq!(a_string, "0000000000000FZZZZZZZZZZZZ");
let mut a_string = String::new();
append_crockford_u64_tuple((0xFFFF_FFFF_FFFF_FFFF, 0xFFFF_FFFF_FFFF_FFFF), &mut a_string);
assert_eq!(a_string, "7ZZZZZZZZZZZZZZZZZZZZZZZZZ");