routee-compass-core 0.17.0

The core routing algorithms and data structures of the RouteE-Compass energy-aware routing engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::model::state::StateModelError;

#[derive(thiserror::Error, Debug, Clone)]
pub enum LabelModelError {
    #[error("{0}")]
    LabelModelError(String),
    #[error("attempting to build label state array of size {0} which is greater than max of {1} elements")]
    BadLabelVecSize(usize, usize),
    #[error("failure building label due to search state: {source}")]
    StateError {
        #[from]
        source: StateModelError,
    },
}