blob: b09db36b6a1d0fcaa3682e7ff5bdc1ae72cfd85f (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#![allow(clippy::module_name_repetitions)]
use crate::libs::intertrait::CastFrom;
use crate::ptr::TransientPtr;
/// Interface for a factory.
pub trait IFactory<Args, ReturnInterface>:
Fn<Args, Output = TransientPtr<ReturnInterface>> + CastFrom
where
ReturnInterface: 'static + ?Sized,
{
}
|