Trait tvix_eval::vm::WithSpan

source ·
trait WithSpan<T, S: GetSpan, IO> {
    // Required method
    fn with_span(self, top_span: S, vm: &VM<'_, IO>) -> Result<T, Error>;
}
Expand description

Internal helper trait for ergonomically converting from a Result<T, ErrorKind> to a Result<T, Error> using the current span of a call frame, and chaining the VM’s frame stack around it for printing a cause chain.

Required Methods§

source

fn with_span(self, top_span: S, vm: &VM<'_, IO>) -> Result<T, Error>

Implementations on Foreign Types§

source§

impl<T, S: GetSpan, IO> WithSpan<T, S, IO> for Result<T, ErrorKind>

source§

fn with_span(self, top_span: S, vm: &VM<'_, IO>) -> Result<T, Error>

Implementors§