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.