Skip to main content

render

Function render 

Source
pub fn render(
    layout: &Layout,
    columns: &[String],
    rows: &[Vec<Value<'static>>],
) -> Vec<String>
Expand description

Renders a result set into the lines that should be printed.

It returns lines rather than writing, so the caller decides where they go - which is what .output and .once need, and what makes this testable without a file.