summaryrefslogtreecommitdiff
path: root/schist_traits/src/timeable.rs
diff options
context:
space:
mode:
Diffstat (limited to 'schist_traits/src/timeable.rs')
-rw-r--r--schist_traits/src/timeable.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/schist_traits/src/timeable.rs b/schist_traits/src/timeable.rs
new file mode 100644
index 0000000..f6f9244
--- /dev/null
+++ b/schist_traits/src/timeable.rs
@@ -0,0 +1,5 @@
+pub trait Timeable {
+ fn hour(&self) -> u32;
+ fn minute(&self) -> u32;
+ fn second(&self) -> u32;
+}