Skip to main content

FunctionCallResult

Type Alias FunctionCallResult 

Source
pub type FunctionCallResult = Result<(), SolverError>;
Expand description

Standard result type used by user callbacks and internal projection/codegen routines.

A successful call returns Ok(()). Failures should be reported with a descriptive SolverError so optimizers can propagate the reason to the caller.

Aliased Type§

pub enum FunctionCallResult {
    Ok(()),
    Err(SolverError),
}

Variants§

§1.0.0

Ok(())

Contains the success value

§1.0.0

Err(SolverError)

Contains the error value