routee-compass-core 0.19.3

The core routing algorithms and data structures of the RouteE-Compass energy-aware routing engine
Documentation
use crate::{algorithm::search::SearchTreeError, model::state::StateModelError};

#[derive(thiserror::Error, Debug)]
pub enum ConstraintModelError {
    #[error("failure building constraint model: {0}")]
    BuildError(String),
    #[error("{0}")]
    ConstraintModelError(String),
    #[error("failure running constraint model due to search tree: {source}")]
    SearchTreeError {
        #[from]
        source: SearchTreeError,
    },
    #[error("failure running constraint model due to state: {source}")]
    StateModelError {
        #[from]
        source: StateModelError,
    },
}