technocreatives / core2

The bare essentials of std::io for use in no_std. Alloc support is optional.
https://docs.rs/core2
Apache License 2.0
71 stars 24 forks source link

Trait `Write` is not implemented for `Cursor<Vec<u8>>` and `Cursor<&mut Vec<u8>>` #27

Open overcat opened 2 months ago

overcat commented 2 months ago

Currently, trait Write is not implemented for Cursor<Vec<u8>> in cursor.rs. However, the standard library includes it. Is there a specific reason why this library doesn't support it?

If possible, can we add this implementation?

impl Write for Cursor<Vec<u8>> {
    // todo
}
overcat commented 2 months ago

Hi @bbqsrc, if possible, I'd be happy to contribute this implementation.