Skip to main content

Module result

Module result 

Source
Expand description

Result<T, E> conversions to R.

Used by #[miniextendr(unwrap_in_r)] to pass Results to R as lists with ok and err fields, instead of unwrapping in Rust. Also provides NullOnErr for Result<T, ()> → NULL-on-error semantics.

Structs§

NullOnErr
Marker type for Result<T, ()> that converts Err(()) to NULL.