Trait reproto_core::WithSpan [] [src]

pub trait WithSpan<T> {
    fn with_span<S: Into<Span>>(
        self,
        diag: &mut Diagnostics,
        span: S
    ) -> Result<T, ()>; }

Required Methods

Report the span to the diagnostics and convert the result into a unit error if failed.

Implementations on Foreign Types

impl<T> WithSpan<T> for Result<T, Error>
[src]

[src]

Implementors