Type Alias swipl::result::OptPrologResult

source ·
pub type OptPrologResult<R> = Result<Option<R>, PrologException>;
Expand description

result type for expressing failure as an Option type instead of an Err.

Aliased Type§

enum OptPrologResult<R> {
    Ok(Option<R>),
    Err(PrologException),
}

Variants§

§1.0.0

Ok(Option<R>)

Contains the success value

§1.0.0

Err(PrologException)

Contains the error value