aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2026-01-25 17:28:28 -0800
committerJesse Morgan <jesse@jesterpm.net>2026-01-25 17:28:28 -0800
commit5cf9a5e311d163b30a6cf22f5cc980a09c34e2a0 (patch)
treea83101e9e52469d1eff321ec4378994f98fe2fea /src/lib.rs
Initial commitHEADmaster
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs14
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>;