Struct console::Emoji
[−]
[src]
pub struct Emoji<'a, 'b>(pub &'a str, pub &'b str);
"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("✨", ":-)"));
Methods
impl<'a, 'b> Emoji<'a, 'b>
[src]
Trait Implementations
impl<'a, 'b> Copy for Emoji<'a, 'b>
[src]
impl<'a, 'b> Clone for Emoji<'a, 'b>
[src]
fn clone(&self) -> Emoji<'a, 'b>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more