encode_fmt_alt

Function encode_fmt_alt 

Source
pub fn encode_fmt_alt<T: Into<u128>>(num: T) -> impl Display
Expand description

Writes the base62 representation of a number using the alternative alphabet to any fmt::Write destination.

ยงExample

use core::fmt::Write;

let mut output = String::new();
write!(output, "{}", base62::encode_fmt_alt(1337_u32));
assert_eq!(output, "lz");