We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Clone
liballoc::collections::linked_list::Cursor
1 parent 861996e commit 22e51cdCopy full SHA for 22e51cd
src/liballoc/collections/linked_list.rs
@@ -1197,6 +1197,14 @@ pub struct Cursor<'a, T: 'a> {
1197
list: &'a LinkedList<T>,
1198
}
1199
1200
+#[unstable(feature = "linked_list_cursors", issue = "58533")]
1201
+impl<T> Clone for Cursor<'_, T> {
1202
+ fn clone(&self) -> Self {
1203
+ let Cursor { index, current, list } = *self;
1204
+ Cursor { index, current, list }
1205
+ }
1206
+}
1207
+
1208
#[unstable(feature = "linked_list_cursors", issue = "58533")]
1209
impl<T: fmt::Debug> fmt::Debug for Cursor<'_, T> {
1210
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
0 commit comments