The issue with this is how to handle backtracking. A simple VecDeque won't do since we cannot mark and track old positions while still keeping the new data. Most likely something with Rc is required to keep track of positions into a common buffer which is append only and will only drop items off the front if those items are no longer used (ie. no cursor pointing to them).
The issue with this is how to handle backtracking. A simple
VecDeque
won't do since we cannot mark and track old positions while still keeping the new data. Most likely something withRc
is required to keep track of positions into a common buffer which is append only and will only drop items off the front if those items are no longer used (ie. no cursor pointing to them).