Function deunicode::deunicode_char
source · Expand description
This function takes a single Unicode character and returns an ASCII transliteration.
The warnings and guarantees of deunicode()
apply to this function as well.
Examples
assert_eq!(deunicode_char('Æ'), Some("AE"));
assert_eq!(deunicode_char('北'), Some("Bei "));