aboutsummaryrefslogtreecommitdiff
path: root/src/castable_factory.rs
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-07-27 15:17:33 +0200
committerHampusM <hampus@hampusmat.com>2022-07-31 12:15:18 +0200
commit3fbf26181f1b4b9e594debb103fd347bd93240ea (patch)
tree63cf13edb5ea21a6cbbcfcf474611820382a5048 /src/castable_factory.rs
parent224e59112e65ce6cbafe5a87dba031dd11e936a8 (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.rs8
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
{