RXIJUOA6ZV5WLAXOEMPFCOGYCCJSN5N76TFCMPVHRHC4S4G2CFHAC
pub fn to_char(&self, emote_name: &str) -> Option<char> {
self.map.get(emote_name).copied().map(char::from)
}
/// Returns the char representing the `emote_name`
pub fn to_char(&self, emote_name: &str) -> Option<char> { self.map.get(emote_name).copied().map(char::from) }
pub fn from_path(p: &Path) -> Result<Self, EmoteMapperError> {
Self::from_reader(File::open(p).map_err(IOError)?)
}
/// Creates an EmoteMapper from a File containing csv data
pub fn from_path(p: &Path) -> Result<Self, EmoteMapperError> { Self::from_reader(File::open(p).map_err(IOError)?) }
char::from_u32(
u32::from_str_radix(&s, 16).map_err(|_| InvalidCodepoint(s.to_string()))?,
)
.ok_or_else(|| InvalidCodepoint(s.to_string()))?,
char::from_u32(u32::from_str_radix(&s, 16).map_err(|_| InvalidCodepoint(s.to_string()))?)
.ok_or_else(|| InvalidCodepoint(s.to_string()))?,