pub type FormatterResult = DiagnosticsResult<String, EmittedDiagnostics>;
Expand description
The result of the formatter.
Aliased Type§
pub enum FormatterResult {
Ok(String),
OkWithDiagnostics(String, EmittedDiagnostics),
ErrRecovered(String, EmittedDiagnostics),
Err(EmittedDiagnostics),
}
Variants§
Ok(String)
Everything went well.
OkWithDiagnostics(String, EmittedDiagnostics)
No errors encountered, but warnings or other non-error diagnostics were emitted.
ErrRecovered(String, EmittedDiagnostics)
Errors encountered, but a result was produced anyway.
Err(EmittedDiagnostics)
Fatal errors encountered.
Layout§
Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.