Result

Type Alias 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.

Aliased Type§

pub enum Result<T> {
    Ok(T),
    Err(Error),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Error)

Contains the error value