diff options
author | HampusM <hampus@hampusmat.com> | 2022-08-20 15:14:13 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-08-21 18:17:50 +0200 |
commit | 47c68f7d70cfa8c639f72361d8d0362048647075 (patch) | |
tree | 871f3577e54f77aa51368f1e34012c1f4f31e44d /examples/factory/interfaces | |
parent | c4eccc81d9bfa472197a4f302df1c967081a0be5 (diff) |
docs: improve the factory example
Diffstat (limited to 'examples/factory/interfaces')
-rw-r--r-- | examples/factory/interfaces/mod.rs | 1 | ||||
-rw-r--r-- | examples/factory/interfaces/user_manager.rs | 6 |
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); +} |