pub fn encode_alternative_buf<T: Into<u128>>(num: T, buf: &mut String)
Expand description

Encodes an unsigned integer into base62, using the alternative digit ordering (0 to 9, then a to z, then A to Z) with lowercase letters before uppercase letters, and then appends it onto the end of the given String.

Example

extern crate base62;

let mut buf = String::from("1337 in base62 alternative: ");
base62::encode_alternative_buf(1337_u32, &mut buf);
assert_eq!(buf, "1337 in base62 alternative: lz");