[−][src]Struct yocto::logger::Theme
The color scheme to use.
The default theme has:
ERROR
printed in bold red.WARN
printed in yellow.INFO
printed in cyan.DEBUG
printed in gray.TRACE
printed in dimmed gray.- The module name is not styled.
Fields
error: Style
The style to give the "ERROR" string.
warn: Style
The style to give the "WARN" string.
info: Style
The style to give the "INFO" string.
debug: Style
The style to give the "DEBUG" string.
trace: Style
The style to give the "TRACE" string.
module: Style
The style to give the module name.
Methods
impl Theme
[src]
pub fn empty() -> Theme
[src]
Returns a theme that does not highlight anything.
pub fn paint_log_level(
&self,
level: LogLevel
) -> ANSIGenericString<'static, str>
[src]
&self,
level: LogLevel
) -> ANSIGenericString<'static, str>
Paints a log level with a theme.
Trait Implementations
impl Copy for Theme
[src]
impl Clone for Theme
[src]
fn clone(&self) -> Theme
[src]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl PartialEq<Theme> for Theme
[src]
impl Default for Theme
[src]
impl Debug for Theme
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.