You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to look up if new() allocates on the heap, or if like std it only allocates when the first item is inserted. Then I wanted to know if clone() allocates, I assume no, but a O(1) allocation on clone would also be persistent. I found the Complexity section of each doc, but did not see an ancer.
The text was updated successfully, but these errors were encountered:
I was trying to look up if
new()
allocates on the heap, or if like std it only allocates when the first item is inserted. Then I wanted to know ifclone()
allocates, I assume no, but aO(1)
allocation on clone would also be persistent. I found the Complexity section of each doc, but did not see an ancer.The text was updated successfully, but these errors were encountered: