aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/factory.rs
blob: 6f8e7c70a0d8be7eea330e313d6e0f69927163a0 (plain)
1
2
3
4
5
6
7
8
9
10
#![allow(clippy::module_name_repetitions)]
use crate::libs::intertrait::CastFrom;
use crate::ptr::TransientPtr;

pub trait IFactory<Args, ReturnInterface>:
    Fn<Args, Output = TransientPtr<ReturnInterface>> + CastFrom
where
    ReturnInterface: 'static + ?Sized,
{
}