pub trait ToImplementation {
// Required method
fn to_implementation(
&self,
context: &LightContext<'_>,
) -> Result<Option<Box<dyn Interface>>>;
}Required Methods§
fn to_implementation( &self, context: &LightContext<'_>, ) -> Result<Option<Box<dyn Interface>>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".