Skip to content

Instantly share code, notes, and snippets.

@bgamari
bgamari / linked_list.rs
Last active Jul 16, 2017
An intrusive linked-list implementation in Rust
View linked_list.rs
/*!
* Intrusive singly linked lists
*/
use std::option::{Option, Some, None};
use std::cell::{Cell};
#[deriving(Show)]
pub struct ListCell<'a, T>(Cell<Option<&'a T>>);
You can’t perform that action at this time.