use std::rc::Rc; use crate::private::cast::CastFrom; use crate::ptr::TransientPtr; /// Interface for a factory. pub trait IFactory: Fn<(Rc,), Output = TransientPtr> + CastFrom where ReturnInterface: 'static + ?Sized, { } /// Interface for a threadsafe factory. #[cfg(feature = "async")] pub trait IThreadsafeFactory: Fn> + crate::private::cast::CastFromArc where Args: std::marker::Tuple, ReturnInterface: 'static + ?Sized, { }