Closed Berrysoft closed 1 year ago
I'm a bit hesitate of the impl of OwnedBufIter, because it limits the users to implement a much efficient one themselves.
We do need to wait for RPITIT to stable before merging this PR is that correct?
I'm afraid so. I hope RPITIT will become stable, but if there's sth. changes and the stablize PR is closed, I think we should find some other ways to implement it.
@Berrysoft I think we also need a owned_iter_mut
returning Result<OwnedBufIterator<impl OwnedBufIteratorInnerMut<Inner = Self>>, Self>
in IoVectoredBuf
Also can we rename OwnedBufIteratorInner
to something like OwnedIterator
and OwnedBufIterator
can be renamed as BufIter
. Current naming is too tedious.
Closing. #71 has rebased onto this PR and will keep working on it.
This is a refactor for vectored buffers. With this PR, we can implement a default
read_vectored
like: