Closed nicolascotton closed 9 months ago
Proposal:
trait Trait; #[injectable] struct Dep; impl Trait for Dep {} #[provider] #[provide(Box<dyn Trait>, |dep: Dep| Box::new(dep))] struct Provider(#[provide(Rc<dyn Trait>, |x| x.clone())] Rc<dyn Trait>)
Proposal: