about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-07-07 14:21:59 +0200
committerGitHub <noreply@github.com>2024-07-07 14:21:59 +0200
commit94d07befe79251e2a8637e46c5505d1ca58ae74f (patch)
tree411160fd90d1ce3b401052f5725c7801a43c0bee /library/std/src
parent35a1ca043ec63f2d744367f4329afa00f98a5420 (diff)
parent23e5468a09b7cfcb62f69dc18bb1f49c5e69b2b5 (diff)
downloadrust-94d07befe79251e2a8637e46c5505d1ca58ae74f.tar.gz
rust-94d07befe79251e2a8637e46c5505d1ca58ae74f.zip
Rollup merge of #127189 - GrigorenkoPV:linkedlist-cursor-list, r=Nilstrieb
LinkedList's Cursor: method to get a ref to the cursor's list

We're already providing `.back()` & `.front()`, for which we hold onto a reference to the parent list, so why not share it? Useful for when you got `LinkedList` -> `CursorMut` -> `Cursor` and cannot take another ref to the list, even though you should be able to. This seems to be completely safe & sound.

The name is, of course, bikesheddable.
Diffstat (limited to 'library/std/src')
0 files changed, 0 insertions, 0 deletions