epanet-rs 0.2.2

A fast, modern and safe re-implementation of the EPANET2 hydraulic solver, written in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
//! Time-varying multiplier `Pattern`s applied to demands, reservoir heads and pump speeds.

use serde::{Deserialize, Serialize};

/// Pattern struct
#[derive(Debug, Deserialize, Serialize, Clone)]
pub struct Pattern {
    pub id: Box<str>,
    pub multipliers: Vec<f64>,
}