[][src]Function base32h::encode_to_string

pub fn encode_to_string(data: u128) -> Option<String>

Returns a base32h encoded string representation of the inputted number Return None if input is greater than 9999999999999999999999999

Arguments

  • data - u128 data to encode

Examples

use base32h::{encode_to_string};
assert_eq!(encode_to_string(1099511627775).unwrap(), "ZZZZZZZZ".to_owned());