pub enum OutputLabel<'a> {
Error(&'a str),
Warning(&'a str),
Info(&'a str),
Success(&'a str),
Custom(StyledObject<&'a str>),
None,
}
Expand description
The enum of possible output labels
Variants§
Error(&'a str)
Outputs Error
in red
Warning(&'a str)
Outputs Warning
in yellow
Info(&'a str)
Outputs the provided label in blue
Success(&'a str)
Outputs the provided label in green
Custom(StyledObject<&'a str>)
Outputs the provided label in the provided color
None
Outputs a blank space with no label
Trait Implementations§
Source§impl<'a> Default for OutputLabel<'a>
impl<'a> Default for OutputLabel<'a>
Source§fn default() -> OutputLabel<'a>
fn default() -> OutputLabel<'a>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<'a> Freeze for OutputLabel<'a>
impl<'a> RefUnwindSafe for OutputLabel<'a>
impl<'a> Send for OutputLabel<'a>
impl<'a> Sync for OutputLabel<'a>
impl<'a> Unpin for OutputLabel<'a>
impl<'a> UnwindSafe for OutputLabel<'a>
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