aboutsummaryrefslogtreecommitdiff
path: root/examples/factory/interfaces
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-08-20 15:14:13 +0200
committerHampusM <hampus@hampusmat.com>2022-08-21 18:17:50 +0200
commit47c68f7d70cfa8c639f72361d8d0362048647075 (patch)
tree871f3577e54f77aa51368f1e34012c1f4f31e44d /examples/factory/interfaces
parentc4eccc81d9bfa472197a4f302df1c967081a0be5 (diff)
docs: improve the factory example
Diffstat (limited to 'examples/factory/interfaces')
-rw-r--r--examples/factory/interfaces/mod.rs1
-rw-r--r--examples/factory/interfaces/user_manager.rs6
2 files changed, 7 insertions, 0 deletions
diff --git a/examples/factory/interfaces/mod.rs b/examples/factory/interfaces/mod.rs
index 22d12a3..2342750 100644
--- a/examples/factory/interfaces/mod.rs
+++ b/examples/factory/interfaces/mod.rs
@@ -1 +1,2 @@
pub mod user;
+pub mod user_manager;
diff --git a/examples/factory/interfaces/user_manager.rs b/examples/factory/interfaces/user_manager.rs
new file mode 100644
index 0000000..83febb8
--- /dev/null
+++ b/examples/factory/interfaces/user_manager.rs
@@ -0,0 +1,6 @@
+pub trait IUserManager
+{
+ fn fill_with_users(&mut self);
+
+ fn print_users(&self);
+}