Crate biome_console

Source

Modules§

fmt

Macros§

markup

Structs§

BufferConsole
Implementation of Console storing all printed messages to a memory buffer
DebugDisplay
It displays a type that implements std::fmt::Display
DebugDisplayOption
It displays a Option<T>, where T implements std::fmt::Display
EnvConsole
Implementation of Console printing messages to the standard output and standard error
Hardline
HorizontalLine
A horizontal line with the given print width
KeyValuePair
It writes a pair of key-value, with the given padding
Markup
Root type returned by the markup macro: this is simply a container for a list of markup nodes
MarkupBuf
MarkupNode
Implementation of a single “markup node”: a piece of text with a number of associated styles applied to it
Message
Individual message entry printed to a BufferConsole
Padding
It prints N whitespaces, where N is the width provided by Padding::new
Softline

Enums§

ColorMode
LogLevel
Determines the “output stream” a message should get printed to
MarkupElement
Enumeration of all the supported markup elements

Constants§

HARD_LINE
SOFT_LINE

Traits§

Console
Generic abstraction over printing markup and diagnostics to an output, which can be a terminal, a file, a memory buffer …
ConsoleExt
Extension trait for Console providing convenience printing methods