Type Alias jlrs::error::JlrsResult
source · pub type JlrsResult<T> = Result<T, Box<JlrsError>>;
Expand description
Alias that is used for most Result
s in this crate.
Aliased Type§
enum JlrsResult<T> {
Ok(T),
Err(Box<JlrsError>),
}
Variants§
Trait Implementations§
source§impl<T: CCallReturn> CCallReturn for JlrsResult<T>
impl<T: CCallReturn> CCallReturn for JlrsResult<T>
§type FunctionReturnType = <T as CCallReturn>::FunctionReturnType
type FunctionReturnType = <T as CCallReturn>::FunctionReturnType
Type constructor for the type returned by the generated Julia function.
§type CCallReturnType = <T as CCallReturn>::CCallReturnType
type CCallReturnType = <T as CCallReturn>::CCallReturnType
Type constructor for the type returned by the
ccall
ed function.source§unsafe fn return_or_throw(self) -> Self::ReturnAs
unsafe fn return_or_throw(self) -> Self::ReturnAs
Convert
self
to data that can be returned to Julia, or throw an exception. Read moresource§impl<E> IntoResult<Result<(), Box<JlrsError>>, E> for JlrsResult<()>
impl<E> IntoResult<Result<(), Box<JlrsError>>, E> for JlrsResult<()>
source§fn into_result(self) -> Result<JlrsResult<()>, E>
fn into_result(self) -> Result<JlrsResult<()>, E>
Convert
self
to a Result
.