[][src]Trait moore::errors::EmitError

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

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

type Output

Loading content...

Required methods

fn emit<C>(self, ctx: C) -> Self::Output where
    C: DiagEmitter

Loading content...

Implementations on Foreign Types

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

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

impl EmitError for ConstError[src]

type Output = ()

Loading content...

Implementors

Loading content...