about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authormain() <main@ehvag.de>2020-05-04 15:53:02 +0200
committerGitHub <noreply@github.com>2020-05-04 15:53:02 +0200
commit1593e2b7df05da71162b9ad0e3f12d577aec3131 (patch)
tree39f4eb8ea619a895d7c477fe03290a184e2b735c /src/libstd/sys/unix/stack_overflow.rs
parent6318d24ad8440fa30428b405be1174478e9536e3 (diff)
downloadrust-1593e2b7df05da71162b9ad0e3f12d577aec3131.tar.gz
rust-1593e2b7df05da71162b9ad0e3f12d577aec3131.zip
Add remove_current_as_list to LinkedList's CursorMut
The `remove_current` method only returns the inner `T` and deallocates the list node. This is unnecessary for move operations, where the element is going to be linked back into this (or even a different) `LinkedList`. The `remove_current_as_list` method avoids this by returning the unlinked list node as a new single-element `LinkedList` structure .
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions