pub fn encode_alternative<T: Into<u128>>(num: T) -> 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 returns the resulting String.

Example

extern crate base62;

let b62 = base62::encode_alternative(1337_u32);
assert_eq!(b62, "lz");