ComponentMeta

Trait ComponentMeta 

Source
pub trait ComponentMeta
where 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§

Source

fn inject(injector: &Injector) -> Result<Self>

Source

fn debug_line() -> Option<String>

Source

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.

Implementations on Foreign Types§

Source§

impl<Inner> ComponentMeta for &'static Inner
where Inner: ComponentMeta,

Source§

impl<Inner> ComponentMeta for Box<Inner>
where Inner: ComponentMeta,

Source§

impl<Inner> ComponentMeta for Rc<Inner>
where Inner: ComponentMeta,

Source§

impl<Inner> ComponentMeta for Arc<Inner>
where Inner: ComponentMeta,

Implementors§

Source§

impl<T: Clone + 'static> ComponentMeta for Lazy<T>

Source§

impl<T: ComponentMeta, Tag> ComponentMeta for Tagged<T, Tag>