Trait runestick::WithSpan[][src]

pub trait WithSpan<T> {
    fn with_span(self, span: Span) -> Result<T, SpannedError>;
}

Trait to coerce a result of a non-spanned error into a spanned error.

Required methods

fn with_span(self, span: Span) -> Result<T, SpannedError>[src]

Convert the given result into a result which produces a spanned error.

Loading content...

Implementations on Foreign Types

impl<T, E> WithSpan<T> for Result<T, E> where
    Error: From<E>, 
[src]

Blanket implementation that is helpful.

Loading content...

Implementors

Loading content...