Rust
Rust FFI
A nice side effect of Outcome.Experimental’s excellent C support is that teaching Rust about Outcome’s result<T> becomes trivially easy. C and C++ results propagate losslessly into Rust Results, and the full power of the Outcome C API is available to Rust code for semantic equivalence comparison et al. Here’s a quick snippet to get you started. This assumes that you have declared your C result using CXX_DECLARE_RESULT_SYSTEM(outcome, intptr_t) in order to produce a C result named “outcome” compatible with an erased system code C++ result: »