routee-compass-core 0.19.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
15
16
use crate::model::{label::Label, 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("found two labels with unmatched types: '{0}' '{1}'")]
    MismatchLabelTypes(Label, Label),
    #[error("failure building label due to search state: {source}")]
    StateError {
        #[from]
        source: StateModelError,
    },
}