pub trait WithFactory<T>: 'static {
const FACTORY: &'static dyn Factory<Self>;
}Expand description
Trait for trait objects that can be created from instances of a concrete type T.
Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.