feat(collections): add clear() method to BaseVec, Log, Vec, and MinHeap#414
feat(collections): add clear() method to BaseVec, Log, Vec, and MinHeap#414sasa-tomic wants to merge 2 commits intomainfrom
Conversation
### Solution - Adds O(1) `clear()` to BaseVec, Log, Vec, and MinHeap - Resets length to 0; next append/push overwrites old data naturally - Headers preserved for Log ### Meta - Updated tests accordingly Closes #242
|
|
|
|
|
|
maksymar
left a comment
There was a problem hiding this comment.
Could you also please update corresponding tests in tests/api_conformance.rs?
Solution
clear()to BaseVec, Log, Vec, and MinHeapMeta