ConsoleExt

Trait ConsoleExt 

Source
pub trait ConsoleExt: Console {
    // Required methods
    fn error(&mut self, args: Markup<'_>);
    fn log(&mut self, args: Markup<'_>);
    fn append(&mut self, args: Markup<'_>);
}
Expand description

Extension trait for Console providing convenience printing methods

Required Methods§

Source

fn error(&mut self, args: Markup<'_>)

Prints a piece of markup with level LogLevel::Error

Source

fn log(&mut self, args: Markup<'_>)

Prints a piece of markup with level LogLevel::Log

Logs a message, adds a new line at the end.

Source

fn append(&mut self, args: Markup<'_>)

Prints a piece of markup with level LogLevel::Log

It doesn’t add any line

Implementors§

Source§

impl<T: Console + ?Sized> ConsoleExt for T