Doubly-linked list/Element insertion: Difference between revisions

Content added Content deleted
Line 955: Line 955:
fn main() {
fn main() {
let mut list = LinkedList::new();
let mut list = LinkedList::new();
list.push(8);
list.push_front(8);
}</lang>
}</lang>

=== The behind-the-scenes implementation ===
=== 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.
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.