trait WithSpan<T, S: GetSpan> {
// Required method
fn with_span(self, top_span: S, vm: &VM<'_>) -> 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§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".