summaryrefslogtreecommitdiff
path: root/rust/core/src/traits/timeable.rs
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2024-11-17 09:23:28 +0000
committerJoe Carstairs <me@joeac.net>2024-11-17 09:23:28 +0000
commit1ae19eb3315c40e3f9062592c27fa76c11cf626c (patch)
tree09d9ce380795971f4b50e1d4b0ca3c57c9e1db1a /rust/core/src/traits/timeable.rs
parent1a494937021561595d0fb29e26fb707aef9e55de (diff)
Renames workspace folder
Diffstat (limited to 'rust/core/src/traits/timeable.rs')
-rw-r--r--rust/core/src/traits/timeable.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/rust/core/src/traits/timeable.rs b/rust/core/src/traits/timeable.rs
new file mode 100644
index 0000000..f6f9244
--- /dev/null
+++ b/rust/core/src/traits/timeable.rs
@@ -0,0 +1,5 @@
+pub trait Timeable {
+ fn hour(&self) -> u32;
+ fn minute(&self) -> u32;
+ fn second(&self) -> u32;
+}