aboutsummaryrefslogtreecommitdiff
path: root/src/ptr.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-07-27 18:05:34 +0200
committerHampusM <hampus@hampusmat.com>2022-07-31 12:17:51 +0200
commit3388f857b32cf1893d7b54582c8fd16e4965550b (patch)
tree2d78d6ca563b071cc2d6e4b3e80c05d93e575737 /src/ptr.rs
parent3fbf26181f1b4b9e594debb103fd347bd93240ea (diff)
feat: implement binding singletons
Diffstat (limited to 'src/ptr.rs')
-rw-r--r--src/ptr.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ptr.rs b/src/ptr.rs
index 62445fd..00c74f4 100644
--- a/src/ptr.rs
+++ b/src/ptr.rs
@@ -3,4 +3,6 @@ use std::rc::Rc;
pub type TransientPtr<Interface> = Box<Interface>;
+pub type SingletonPtr<Interface> = Rc<Interface>;
+
pub type FactoryPtr<FactoryInterface> = Rc<FactoryInterface>;