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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a, 'b> Display for Emoji<'a, 'b>
[src]

Formats the value using the given formatter. Read more