calyx_opt::traversal

Trait DiagnosticResult

Source
pub trait DiagnosticResult {
    // Required method
    fn accumulate_err(self, diag: &mut DiagnosticContext) -> Self;
}
Expand description

Accumuate the error in a Result type into the DiagnosticContext.

Required Methods§

Source

fn accumulate_err(self, diag: &mut DiagnosticContext) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<T> DiagnosticResult for CalyxResult<T>
where T: Default,

Source§

fn accumulate_err(self, diag: &mut DiagnosticContext) -> Self

Implementors§