to_string

Function to_string 

Source
pub fn to_string<T: AsRef<[u8]>>(buf: T) -> String
Expand description

Encode buffer as an encoji string

let bytes = [0x6e, 0x6e, 0x6e, 0xcd];
let emojis = "🔥🔥🔥🚀";

assert_eq!(encoji::to_string(&bytes), emojis);