Let's say we have an unsized type (in my case a "dyn std::error::Error") inside of an "Arc". I need to be able to do "try_unwrap" on this type to get the inner type; however, this isn't possible, since the type is unsized. It would be nice to have a "try_unwrap_boxed" method that did what "try_unwrap" does, but puts it into a
I would be willing to implement this. In fact, I have implemented a version of it here: GitHub - notgull/try-unwrap-boxed: Attempt to turn an Rc<T> or an Arc<T> into a Box<T>.
I don't know whether this has to be an RFC or if I could just make a PR in the Rust repository,