Anonymous user
Doubly-linked list/Element insertion: Difference between revisions
Doubly-linked list/Element insertion (view source)
Revision as of 22:01, 20 November 2015
, 8 years ago→{{header|Rust}}
Line 951:
=={{header|Rust}}==
=== Simply using the standard library ===
<lang rust>use std::collections::LinkedList;
fn main() {
let mut list = LinkedList::new();
list.push(8);
}</lang>
=== The behind-the-scenes implementation ===
This expands upon the implementation defined in [[Doubly-linked list/Element definition#Rust]] and consists of the relevant lines from the LinkedList implementation in the Rust standard library.
|