pub trait ComponentMetawhere
Self: Sized,{
// Required methods
fn inject(injector: &Injector) -> Result<Self>;
fn debug_line() -> Option<String>;
fn dependencies_names() -> Vec<(TypeId, &'static str)>;
// Provided method
fn lazy() -> bool { ... }
}Required Methods§
fn inject(injector: &Injector) -> Result<Self>
fn debug_line() -> Option<String>
fn dependencies_names() -> Vec<(TypeId, &'static str)>
Provided Methods§
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.