summaryrefslogtreecommitdiff
path: root/rust/schist_traits/src/dateable.rs
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2024-11-17 12:16:19 +0000
committerJoe Carstairs <me@joeac.net>2024-11-17 12:20:48 +0000
commit99fa72e2b9d572e00cd232bd55a3fa24722c3134 (patch)
tree6b50ce600fffa07a0c21b7f14d2447fe5ac3c2ed /rust/schist_traits/src/dateable.rs
parent10f071447594f2bdcec84a461df9ad648f71f44b (diff)
Refactors workspace
Diffstat (limited to 'rust/schist_traits/src/dateable.rs')
-rw-r--r--rust/schist_traits/src/dateable.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/rust/schist_traits/src/dateable.rs b/rust/schist_traits/src/dateable.rs
new file mode 100644
index 0000000..05f2d74
--- /dev/null
+++ b/rust/schist_traits/src/dateable.rs
@@ -0,0 +1,5 @@
+pub trait Dateable {
+ fn year(&self) -> i32;
+ fn month(&self) -> u32;
+ fn day(&self) -> u32;
+}