pub fn encode<T: Into<u128>>(num: T) -> String
Expand description

Encodes an unsigned integer into base62, using the standard digit ordering (0 to 9, then A to Z, then a to z), and returns the resulting String.

Example

extern crate base62;

let b62 = base62::encode(1337_u32);
assert_eq!(b62, "LZ");