Skip to main content

render_table

Function render_table 

Source
pub fn render_table<R: Tabled>(rows: &[R]) -> String
Expand description

Render rows as a tabled text table with the canonical v0.1 style. Returns the rendered string with a trailing newline so callers can print! directly.

The style is fixed at v0.1 (psql-equivalent). Theming is a v0.2+ concern — see W2 in the spec.