Function base_emoji::to_names [] [src]

pub fn to_names<T: AsRef<[u8]>>(buf: T) -> String

Encode buffer as a string of emoji names

let input = [0xde, 0xad, 0xbe, 0xef];
let output = ":snowflake::panda_face::police_car::tongue:";
assert_eq!(base_emoji::to_names(&input), output);