Open oriontvv opened 12 months ago
Hello, thanks for this crate! I would like to know if it's possible to resolve an mutable instance from ServiceProvider? Or do you consider such feature?
Hi, crate isn't intended to be used with mutable references, but you can use interior mutability types (RefMut or Mutex).
RefMut
Mutex
Also, you can try to implement mutable references resolving like here but I don't know if borrow checker allows this.
Hello, thanks for this crate! I would like to know if it's possible to resolve an mutable instance from ServiceProvider? Or do you consider such feature?