Skip to main content

render_ansi

Function render_ansi 

Source
pub fn render_ansi(
    source: &[u8],
    spans: &[StyledSpan],
) -> Result<String, RenderError>
Expand description

Renders a source buffer and styled spans into a single ANSI string.

ยงErrors

Returns an error when spans are out of bounds, unsorted, or overlapping.