Skip to content

Instantly share code, notes, and snippets.

Avatar
🦀
<3 Rust <3

Nia Calia-Bogan Alfriadox

🦀
<3 Rust <3
View GitHub Profile
@Alfriadox
Alfriadox / linked_list.rs
Created Jan 9, 2019 — forked from codesections/linked_list.rs
A simple linked list implemented in Rust
View linked_list.rs
#[derive(Debug)]
pub struct LinkedList {
head: Option<Box<Node>>,
tail: Option<*mut Node>,
}
#[derive(Debug)]
struct Node {
value: i32,
next: Option<Box<Node>>,
}
You can’t perform that action at this time.