routee-compass-core 0.6.0

The core routing algorithms and data structures of the RouteE-Compass energy-aware routing engine
Documentation
use std::sync::Arc;

use crate::model::frontier::{
    frontier_model::FrontierModel, frontier_model_error::FrontierModelError,
    frontier_model_service::FrontierModelService,
};

#[derive(Clone)]
pub struct NoRestriction {}

impl FrontierModel for NoRestriction {}

impl FrontierModelService for NoRestriction {
    fn build(
        &self,
        _query: &serde_json::Value,
    ) -> Result<Arc<dyn FrontierModel>, FrontierModelError> {
        Ok(Arc::new(self.clone()))
    }
}