biome_console 0.7.0

Utilities to print messages (formatted with biome_markup) and diagnostics
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
mod html;
mod string;
mod termcolor;

use std::{fmt, io};

use crate::fmt::MarkupElements;

pub use self::{html::HTML, string::StringBuffer, termcolor::Termcolor};

pub trait Write {
    fn write_str(&mut self, elements: &MarkupElements, content: &str) -> io::Result<()>;
    fn write_fmt(&mut self, elements: &MarkupElements, content: fmt::Arguments) -> io::Result<()>;
}