[][src]Trait moore_common::errors::EmitError

pub trait EmitError {
    type Output;
    pub fn emit<C: DiagEmitter>(self, ctx: C) -> Self::Output;
}

Emit errors as diagnostics.

Useful if implemented on the error types returned from results. Allows these results to be emitted as diagnostics on-the-fly and converted to a () error type result.

Associated Types

Loading content...

Required methods

pub fn emit<C: DiagEmitter>(self, ctx: C) -> Self::Output[src]

Loading content...

Implementations on Foreign Types

impl<T, E: EmitError> EmitError for Result<T, E>[src]

type Output = Result<T, E::Output>

Loading content...

Implementors

Loading content...