routee-compass-core 0.18.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::constraint::{
    default::no_restriction::NoRestriction, ConstraintModelBuilder, ConstraintModelError,
    ConstraintModelService,
};
use std::sync::Arc;

pub struct NoRestrictionBuilder {}

impl ConstraintModelBuilder for NoRestrictionBuilder {
    fn build(
        &self,
        _parameters: &serde_json::Value,
    ) -> Result<Arc<dyn ConstraintModelService>, ConstraintModelError> {
        Ok(Arc::new(NoRestriction {}))
    }
}