diff options
author | HampusM <hampus@hampusmat.com> | 2022-07-27 15:17:33 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-07-31 12:15:18 +0200 |
commit | 3fbf26181f1b4b9e594debb103fd347bd93240ea (patch) | |
tree | 63cf13edb5ea21a6cbbcfcf474611820382a5048 /src/castable_factory.rs | |
parent | 224e59112e65ce6cbafe5a87dba031dd11e936a8 (diff) |
refactor!: rename InterfacePtr to TransientPtr
BREAKING CHANGE: InterfacePtr has been renamed to TransientPtr
Diffstat (limited to 'src/castable_factory.rs')
-rw-r--r-- | src/castable_factory.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/castable_factory.rs b/src/castable_factory.rs index c50456c..5ff4db0 100644 --- a/src/castable_factory.rs +++ b/src/castable_factory.rs @@ -1,13 +1,13 @@ use crate::interfaces::any_factory::AnyFactory; use crate::interfaces::factory::IFactory; -use crate::ptr::InterfacePtr; +use crate::ptr::TransientPtr; pub struct CastableFactory<Args, ReturnInterface> where Args: 'static, ReturnInterface: 'static + ?Sized, { - func: &'static dyn Fn<Args, Output = InterfacePtr<ReturnInterface>>, + func: &'static dyn Fn<Args, Output = TransientPtr<ReturnInterface>>, } impl<Args, ReturnInterface> CastableFactory<Args, ReturnInterface> @@ -16,7 +16,7 @@ where ReturnInterface: 'static + ?Sized, { pub fn new( - func: &'static dyn Fn<Args, Output = InterfacePtr<ReturnInterface>>, + func: &'static dyn Fn<Args, Output = TransientPtr<ReturnInterface>>, ) -> Self { Self { func } @@ -58,7 +58,7 @@ where Args: 'static, ReturnInterface: 'static + ?Sized, { - type Output = InterfacePtr<ReturnInterface>; + type Output = TransientPtr<ReturnInterface>; extern "rust-call" fn call_once(self, args: Args) -> Self::Output { |