Skip to main content

render

Function render 

Source
pub fn render(records: &[ScanRecord], format: OutputFormat) -> String
Expand description

Render records in a machine-readable format into a single string.

The returned string is the complete output for the format, including any trailing newline. Passing OutputFormat::Text returns an empty string: the colorized human report is produced by the caller, not here.