diff options
Diffstat (limited to 'src/lib.rs')
| -rw-r--r-- | src/lib.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs new file mode 100644 index 0000000..d1ae1a9 --- /dev/null +++ b/src/lib.rs @@ -0,0 +1,14 @@ +use std::collections::BTreeMap; + +use chrono::NaiveDate; + +pub mod heatmap; + +/// The type used for the collection of date/value pairs. +pub type Data = BTreeMap<NaiveDate, f64>; + +/// The Error type used within the library. +pub type Error = Box<dyn std::error::Error>; + +/// The Result type used within the library. +pub type Result<T> = std::result::Result<T, Error>; |
