[−][src]Enum paris::LogIcon
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
A check mark, use when things go well
Example
println!("{} Everything went well", LogIcon::Tick); // ✔ Everything went well
A cross, use when things go bad, or be creative
Example
println!("{} Oops, try again!", LogIcon::Cross); // ✖ Oops, try again!
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.
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!
Trait Implementations
impl Display for LogIcon
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Match the enum value and print out the equivalent icon. On Windows, icons will be replaced with other things that are supported. See this github repo for all replacements
Auto Trait Implementations
impl RefUnwindSafe for LogIcon
impl Send for LogIcon
impl Sync for LogIcon
impl Unpin for LogIcon
impl UnwindSafe for LogIcon
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,