Skip to main content

render

Function render 

Source
pub fn render(rule_id: Option<&str>, fmt: &str) -> Result<String, String>
Expand description

Renders a rule explanation, or a per-category listing when rule_id is None. Err(normalized_id) for an unknown rule id — mirrors explain.py::render’s raise KeyError(rule_id), with the caller (CLI dispatch) producing a “did you mean?” suggestion list.