Skip to main content

serialize_diagnostics

Function serialize_diagnostics 

Source
pub fn serialize_diagnostics(
    diagnostics: &[Diagnostic],
) -> Result<String, Error>
Expand description

Serialize a diagnostics list as the JSON array of PowerIO IR diagnostic records: the encoding a module’s diagnostics field carries, with an identity minted for every record that has none.

§Errors

The records cannot be encoded as JSON.