pub fn encode<S, W>(src: S, dest: W) -> Result<()>
Expand description
Encode the bytes of src
into a mnemonic string, and write the string to dest
§Example
let bytes = [101, 2, 240, 6, 108, 11, 20, 97];
let mut dest = Vec::<u8>::new();
mnemonic::encode(&bytes, &mut dest).unwrap();
assert_eq!(dest, &b"digital-apollo-aroma--rival-artist-rebel"[..]);