diff options
author | HampusM <hampus@hampusmat.com> | 2022-07-27 18:05:34 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-07-31 12:17:51 +0200 |
commit | 3388f857b32cf1893d7b54582c8fd16e4965550b (patch) | |
tree | 2d78d6ca563b071cc2d6e4b3e80c05d93e575737 /src/ptr.rs | |
parent | 3fbf26181f1b4b9e594debb103fd347bd93240ea (diff) |
feat: implement binding singletons
Diffstat (limited to 'src/ptr.rs')
-rw-r--r-- | src/ptr.rs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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>; |