pub fn create_shared_resource_feature<T>(
    name: &str,
    total_jobs: usize,
    code: ViolationCode,
    resource_key: StateKey,
    interval_fn: SharedResourceIntervalFn,
    resource_capacity_fn: SharedResourceCapacityFn<T>,
    resource_demand_fn: SharedResourceDemandFn<T>
) -> Result<Feature, GenericError>
where T: SharedResource + Add<Output = T> + Sub<Output = T>,
Expand description

Creates a feature which provides a way to define and use time independent, shared across multiple routes resource. It is a hard constraint.