Type Alias GraphResult

Source
pub type GraphResult<T = ()> = Result<T, GraphError>;
Expand description

The result type alias of a graph operation, see GraphError & GraphErrorKind for more.

§Examples

use graph_theory::GraphResult;

Aliased Type§

pub enum GraphResult<T = ()> {
    Ok(T),
    Err(GraphError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(GraphError)

Contains the error value