biome_console 0.5.8

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

use std::{fmt, io};

use crate::fmt::MarkupElements;

pub use self::{html::HTML, 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<()>;
}