3 ms·
can you elaborate? rust iterators seem quite capable of streaming in the fashion you suggest.
by cmrx64 3y ago
can you elaborate? rust iterators seem quite capable of streaming in the fashion you suggest.
- vlovich123 3y agoIf I have a buffer in a library and the external API is “append to buffer”, each append will do a bounds check. I’m not aware of an iterator API would work especially considering that the iterator would hold ownership of the buffer which would be incompatible with the call flow returning to the user after the append.