typst::diag

Trait At

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

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

Required Methods§

source

fn at(self, span: Span) -> SourceResult<T>

Add the span information.

Implementations on Foreign Types§

source§

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

source§

fn at(self, span: Span) -> SourceResult<T>

Implementors§

source§

impl<T> At<T> for HintedStrResult<T>