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§
Sourcefn error(&mut self, args: Markup<'_>)
fn error(&mut self, args: Markup<'_>)
Prints a piece of markup with level LogLevel::Error
Sourcefn log(&mut self, args: Markup<'_>)
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.
Sourcefn append(&mut self, args: Markup<'_>)
fn append(&mut self, args: Markup<'_>)
Prints a piece of markup with level LogLevel::Log
It doesn’t add any line