Type Definition rustmex::Result

source · []
pub type Result<T> = Result<T, Error>;
Expand description

Convenience type for returning a Error containing a MexMessage in the error path.

Generating a Matlab error diverges; it does not return to Rust code. This prevents destructors from running, and may thus leak memory. Returning from the entrypoint with this type’s Err variant is therefore preferable.