pub fn encode_into_string(output: &mut String, data: &[u8], alphabet: Alphabet)Available on crate feature
alloc only.Expand description
Appends the base32-encoded representation of data to a [String].
ยงExample
let mut s = String::from("tag: ");
base32::encode_into_string(&mut s, b"hello", base32::Alphabet::Rfc4648);
assert_eq!(s, "tag: NBSWY3DP");