Struct gh_emoji::Replacer [−][src]
pub struct Replacer { /* fields omitted */ }
Expand description
Replaces :emoji:
in strings
let r = gh_emoji::Replacer::new(); let unicode_text = r.replace_all("Hello :cat:!");
Implementations
Replaces all occurrences of :emoji_names:
in the string
It may return Cow::Borrowed
if there were no emoji-like
patterns in the string. Call .to_string()
if you need
String
or .as_ref()
to get &str
.