routee-compass-core 0.19.3

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 std::num::ParseIntError;

#[derive(thiserror::Error, Debug)]
pub enum ConversionError {
    #[error("could not decode {0} as {1}")]
    DecoderError(String, String),
    #[error("JSON serialization/deserialization error during value conversion: {source}")]
    SerdeJsonError {
        #[from]
        source: serde_json::Error,
    },
    #[error("regex compilation error during conversion: {0}")]
    RegexError(#[from] regex::Error),
    #[error("failed to parse integer during conversion: {0}")]
    ParseIntError(#[from] ParseIntError),
}