Rewind would rewind the iterator cursor all the way to zero-th position, which would be the smallest key if iterating forward, and largest if iterating backward. It does not keep track of whether the cursor started with a Seek().
()
| 749 | // smallest key if iterating forward, and largest if iterating backward. It does not keep track of |
| 750 | // whether the cursor started with a Seek(). |
| 751 | func (it *Iterator) Rewind() { |
| 752 | it.Seek(nil) |
| 753 | } |