pub unsafe trait FactoryImplementation<'a>: 'a {
type Factory: Factory<'a>;
type Wrapped;
// Required method
fn wrapper(
&self,
) -> &FactoryWrapper<<Self::Factory as Factory<'a>>::Raw, Self::Wrapped>;
}Expand description
Required Associated Types§
Sourcetype Wrapped
type Wrapped
The inner factory implementation type in the FactoryWrapper returned by wrapper
Required Methods§
Sourcefn wrapper(
&self,
) -> &FactoryWrapper<<Self::Factory as Factory<'a>>::Raw, Self::Wrapped>
fn wrapper( &self, ) -> &FactoryWrapper<<Self::Factory as Factory<'a>>::Raw, Self::Wrapped>
Returns the FactoryWrapper instance this type is able to provide.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".