Type Alias jlrs::error::JlrsResult

source ·
pub type JlrsResult<T> = Result<T, Box<JlrsError>>;
Expand description

Alias that is used for most Results in this crate.

Aliased Type§

enum JlrsResult<T> {
    Ok(T),
    Err(Box<JlrsError>),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(Box<JlrsError>)

Contains the error value

Trait Implementations§

source§

impl<T: CCallReturn> CCallReturn for JlrsResult<T>

§

type FunctionReturnType = <T as CCallReturn>::FunctionReturnType

Type constructor for the type returned by the generated Julia function.
§

type CCallReturnType = <T as CCallReturn>::CCallReturnType

Type constructor for the type returned by the ccalled function.
§

type ReturnAs = T

Type returned to Julia after calling Self::return_or_throw.
source§

unsafe fn return_or_throw(self) -> Self::ReturnAs

Convert self to data that can be returned to Julia, or throw an exception. Read more
source§

impl<E> IntoResult<Result<(), Box<JlrsError>>, E> for JlrsResult<()>

source§

fn into_result(self) -> Result<JlrsResult<()>, E>

Convert self to a Result.