nicolascotton / nject

Simple zero cost dependency injection library made for rust
MIT License
45 stars 3 forks source link

Providers should be able to easily provide providable values. #6

Closed nicolascotton closed 2 years ago

nicolascotton commented 2 years ago

Proposition:

// Instead of
provider.inject::<SomeInjectable>();
// Expose
provider.provide::<SomeProvidable>();