[][src]Function mdcat::write_styled

pub fn write_styled<W: Write, V: AsRef<str>>(
    terminal: &mut dyn Terminal<TerminalWrite = W>,
    style: &Style,
    text: V
) -> Result<(), Error>

Write a styled text to a terminal.

If the terminal supports styles use style to paint text, otherwise just write text and ignore style.