pub enum EnsembleDiagnostic {
One(Diagnostic),
Many(Vec<Diagnostic>),
}
Expand description
One or more diagnostics in a specific order, in order to form an “ensemble diagnostic” which is emitted all at once.
Variants§
Implementations§
source§impl EnsembleDiagnostic
impl EnsembleDiagnostic
sourcepub fn render<'gcx>(
&self,
buf: &mut Buffer,
sourcemgr: &'gcx SourceMgr,
config: Option<&Config>
) -> CalResult<()>
pub fn render<'gcx>(
&self,
buf: &mut Buffer,
sourcemgr: &'gcx SourceMgr,
config: Option<&Config>
) -> CalResult<()>
Render the ensemble diagnostic to the provided buffer. This will add a newline at the end.
Errors
This function will error if rendering the diagnostic or writing to the buffer failed.
Trait Implementations§
source§impl Debug for EnsembleDiagnostic
impl Debug for EnsembleDiagnostic
source§impl From<Diagnostic> for EnsembleDiagnostic
impl From<Diagnostic> for EnsembleDiagnostic
source§fn from(diag: Diagnostic) -> Self
fn from(diag: Diagnostic) -> Self
Converts to this type from the input type.
source§impl From<Vec<Diagnostic, Global>> for EnsembleDiagnostic
impl From<Vec<Diagnostic, Global>> for EnsembleDiagnostic
source§fn from(diags: Vec<Diagnostic>) -> Self
fn from(diags: Vec<Diagnostic>) -> Self
Converts to this type from the input type.