pub enum LogIcon {
Tick,
Cross,
Info,
Warning,
Heart,
None,
}
Expand description
Contains definitions for icons that can be used in the terminal. See this github repo for an entire list. Use this in combination with printing macros.
Variants§
Tick
A check mark, use when things go well
§Example
use paris::LogIcon;
println!("{} Everything went well", LogIcon::Tick);
// ✔ Everything went well
Cross
A cross, use when things go bad, or be creative
§Example
println!("{} Oops, try again!", LogIcon::Cross);
// ✖ Oops, try again!
Info
A fancy ‘i’, for information
§Example
println!("{} In Switzerland it is illegal to own just one guinea pig", LogIcon::Info);
// ℹ In Switzerland it is illegal to own just one guinea pig.
Warning
A triangle with an exclamation mark in it, dangerous
§Example
println!("{} Things are starting to catch fire!", LogIcon::Warning);
// ⚠ Things are starting to catch fire!
Heart
None
No icon. Empty string. Nada. This is here to return something for the parser when it doesn’t match any given keys
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogIcon
impl RefUnwindSafe for LogIcon
impl Send for LogIcon
impl Sync for LogIcon
impl Unpin for LogIcon
impl UnwindSafe for LogIcon
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more