tinymist_std::typst::diag

Trait At

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§

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

Add the span information.

Implementations on Foreign Types§

§

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

§

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

§

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

§

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

Implementors§