routee-compass-core 0.6.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
#[derive(thiserror::Error, Debug)]
pub enum CostError {
    #[error("failure reading CSV: {source}")]
    CsvIoError {
        #[from]
        source: csv::Error,
    },
    #[error("expected state variable name {0} not found in cost rate table")]
    StateVariableNotFound(String),
    #[error("index {0} for state variable {1} out of bounds, not found in traversal state")]
    StateIndexOutOfBounds(usize, String),
}