Module jlrs::convert::into_jlrs_result[][src]

Expand description

Convert a JuliaResult to a JlrsResult.

Methods that call the Julia C API and can throw an exception generally return a nested Result. The outer error contains no Julia data, while the inner error contains the thrown exception. The IntoJlrsResult trait can be used to convert the inner error into the outer error.

Traits

Extension trait that lets you convert a JuliaResult to a JlrsResult. If an exception is thrown, this method converts the exception to an error message by calling Base.showerror.