8 releases (stable)

Uses old Rust 2015

1.1.3 Feb 23, 2017
1.1.2 Jan 30, 2017
1.1.1 Oct 3, 2015
1.0.2 Oct 3, 2015
0.0.1 Jan 22, 2015

#2118 in Data structures

MIT license

580KB
1K SLoC

JavaScript 840 SLoC // 0.1% comments Rust 403 SLoC

doubly

Doubly-linked lists in Rust

Usage

extern crate doubly;

use doubly::DoublyLinkedList;

fn main() {
    let my_list: DoublyLinkedList<i32> = DoublyLinkedList::new_empty();

    for k in 1..999999 {
        my_list.push_back(k);
    }

    my_list[7] = 85;

    for k in my_list.iter().take(10) {
        println!("{}", k);
    }
}

No runtime deps