Function mnemonic::to_string

source ·
pub fn to_string<S: AsRef<[u8]>>(src: S) -> String
Expand description

Encode the bytes of src and return the results as a String

Example

let bytes = [101, 2, 240, 6, 108, 11, 20, 97];

let s = mnemonic::to_string(&bytes);
assert_eq!(s, "digital-apollo-aroma--rival-artist-rebel");