pub fn render<'a>(w: impl Write, s: impl Into<StyledStr<'a>>) -> Result<()>Expand description
Renders a styled string to the given output using ansi_term.
ยงExample
let s = text_style::StyledStr::plain("test").bold();
text_style::ansi_term::render(std::io::stdout(), s)
.expect("Failed to render string");