gpt icon indicating copy to clipboard operation
gpt copied to clipboard

Add IO-capable TakePartition struct

Open oldgalileo opened this issue 2 years ago • 1 comments

This PR supports using a "taken" Partition (modeled after std::io::Take) to work with all the normal I/O Read operations, and allows it to work seamlessly with std::io::copy(&mut taken_partition, write_impl)

oldgalileo avatar Mar 12 '22 19:03 oldgalileo

Mistakenly opened this as a full PR rather than a draft PR.

It would be great to move forward with this as though it were a draft. Beyond the lack of 1.46.0 guarantees (maybe this could be batched into the next major release with breaking changes being to loosen Rust toolchain guarantees), the naming and structure of this was made as an MVP.

oldgalileo avatar Mar 12 '22 20:03 oldgalileo

Feel free to reopen and rebase if you're still interested.

soerenmeier avatar Nov 18 '23 15:11 soerenmeier