Original issue report: ((Link to issue))
As of Jan 2021, there doesn't seem to be an ideal fix that works in stable Rust with no performance overhead. Below are links to relevant discussions & suggestions for the fix.
- Well-written document regarding the issue
- Rust RFC 2930
- nightly feature
std::io::Initializer
- Discussion in Rust Internals Forum
Thank you for reviewing this PR :)