#![allow(clippy::module_name_repetitions)] //! Interface for a factory. use crate::libs::intertrait::CastFrom; use crate::ptr::TransientPtr; /// Interface for a factory. /// /// # Examples /// ``` /// use syrette::interface::factory::IFactory; /// /// type StringFactory = dyn IFactory<(), String>; /// ``` pub trait IFactory: Fn> + CastFrom where ReturnInterface: 'static + ?Sized, { }