fitzgen / bumpalo

A fast bump allocation arena for Rust
https://docs.rs/bumpalo
Apache License 2.0
1.36k stars 111 forks source link

About the `io::Write` trait impl on the `bumpalo::Vec` #109

Closed Kerollmops closed 3 years ago

Kerollmops commented 3 years ago

Was just wondering if there was some limitation about implementing the io::Write trait on the Vec fork of the bumpalo crate? Is there any hidden complexity somewhere that I am not aware of?

Thank you very much for this crate, it's pretty useful and well-documented.

Kerollmops commented 3 years ago

As the bumpalo crate is a no_std crate and will likely keep this property, I think it would be easier to just copy-paste the io::Write implementation on a BumpVecWriteWrapper type as the implementation is very short and simple.