Trait At

Source
pub trait At<T> {
    // Required method
    fn at(self, span: Span) -> Result<T, EcoVec<SourceDiagnostic>>;
}
Expand description

Convert a StrResult or HintedStrResult to a SourceResult by adding span information.

Required Methods§

Source

fn at(self, span: Span) -> Result<T, EcoVec<SourceDiagnostic>>

Add the span information.

Implementations on Foreign Types§

Source§

impl<T> At<T> for Result<T, HintedString>

Source§

fn at(self, span: Span) -> Result<T, EcoVec<SourceDiagnostic>>

Source§

impl<T, S> At<T> for Result<T, S>
where S: Into<EcoString>,

Source§

fn at(self, span: Span) -> Result<T, EcoVec<SourceDiagnostic>>

Implementors§