Skip to content

Instantly share code, notes, and snippets.

View vcfxb's full-sized avatar
🦀
Probably writing Rust and listening to music

Venus Xeon-Blonde vcfxb

🦀
Probably writing Rust and listening to music
View GitHub Profile
@vcfxb
vcfxb / linked_list.rs
Created January 9, 2019 00:07 — forked from codesections/linked_list.rs
A simple linked list implemented in Rust
#[derive(Debug)]
pub struct LinkedList {
head: Option<Box<Node>>,
tail: Option<*mut Node>,
}
#[derive(Debug)]
struct Node {
value: i32,
next: Option<Box<Node>>,
}