Struct calypso_diagnostic::diagnostic::builder::EnsembleBuilder
source · Expand description
A builder for an ensemble diagnostic.
Fields§
§diags: Vec<Builder>
Implementations§
source§impl EnsembleBuilder
impl EnsembleBuilder
sourcepub fn add(self, severity: Severity, f: impl FnOnce(Builder) -> Builder) -> Self
pub fn add(self, severity: Severity, f: impl FnOnce(Builder) -> Builder) -> Self
Add a diagnostic to the ensemble, using the builder provided.
sourcepub fn bug(self, f: impl FnOnce(Builder) -> Builder) -> Self
pub fn bug(self, f: impl FnOnce(Builder) -> Builder) -> Self
Add a diagnostic to the ensemble, using the builder provided and the
severity Severity::Bug
.
sourcepub fn error(self, f: impl FnOnce(Builder) -> Builder) -> Self
pub fn error(self, f: impl FnOnce(Builder) -> Builder) -> Self
Add a diagnostic to the ensemble, using the builder provided and the
severity Severity::Error
.
sourcepub fn warning(self, f: impl FnOnce(Builder) -> Builder) -> Self
pub fn warning(self, f: impl FnOnce(Builder) -> Builder) -> Self
Add a diagnostic to the ensemble, using the builder provided and the
severity Severity::Warning
.
sourcepub fn note(self, f: impl FnOnce(Builder) -> Builder) -> Self
pub fn note(self, f: impl FnOnce(Builder) -> Builder) -> Self
Add a diagnostic to the ensemble, using the builder provided and the
severity Severity::Note
.
sourcepub fn help(self, f: impl FnOnce(Builder) -> Builder) -> Self
pub fn help(self, f: impl FnOnce(Builder) -> Builder) -> Self
Add a diagnostic to the ensemble, using the builder provided and the
severity Severity::Help
.
sourcepub fn build(self) -> EnsembleDiagnostic
pub fn build(self) -> EnsembleDiagnostic
Build the diagnostic.
Trait Implementations§
source§impl Debug for EnsembleBuilder
impl Debug for EnsembleBuilder
source§impl Default for EnsembleBuilder
impl Default for EnsembleBuilder
source§fn default() -> EnsembleBuilder
fn default() -> EnsembleBuilder
Returns the “default value” for a type. Read more