Skip to main content

Result

Type Alias Result 

Source
pub type Result<T> = Result<T, String>;
Expand description

Result of the fallible library functions. The error is a message that normally starts with a stable code (CFD-E…: …). For an invalid case, case::Case::validate and the functions that call it, such as grid::Grid::build and solver::run, return the serialized case::CheckReport instead.

Aliased Type§

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

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(String)

Contains the error value