Struct console::Emoji [−][src]
Expand description
“Intelligent” emoji formatter.
This struct intelligently wraps an emoji so that it is rendered only on systems that want emojis and renders a fallback on others.
Example:
use console::Emoji;
println!("[3/4] {}Downloading ...", Emoji("🚚 ", ""));
println!("[4/4] {} Done!", Emoji("✨", ":-)"));
Tuple Fields
0: &'a str
1: &'b str
Implementations
Trait Implementations
Auto Trait Implementations
impl<'a, 'b> RefUnwindSafe for Emoji<'a, 'b>
impl<'a, 'b> UnwindSafe for Emoji<'a, 'b>
Blanket Implementations
Mutably borrows from an owned value. Read more