Skip to content

Instantly share code, notes, and snippets.

View spacejam's full-sized avatar
💭
internet denier

Tyler Neely spacejam

💭
internet denier
View GitHub Profile
@spacejam
spacejam / playground.rs
Created January 15, 2018 23:35 — forked from anonymous/playground.rs
Rust code shared from the playground
#[macro_use]
extern crate quickcheck;
extern crate rand;
extern crate btree;
use self::quickcheck::{Arbitrary, Gen};
// The maximum key size. keeping it relatively
// small increases the chance of multiple
// operations being executed against the same
@spacejam
spacejam / playground.rs
Last active January 15, 2018 23:46 — forked from anonymous/playground.rs
Rust code shared from the playground
struct Node<K, V>
where
K: Ord
{
key: K,
value: V,
left: Option<Box<Node<K, V>>>,
right: Option<Box<Node<K, V>>>,
}
@spacejam
spacejam / playground.rs
Created January 15, 2018 22:16 — forked from anonymous/playground.rs
Rust code shared from the playground
struct Node<K, V>
where
K: Ord + Sized,
V: Sized,
{
key: K,
value: V,
left: Option<Box<Node<K, V>>>,
right: Option<Box<Node<K, V>>>,
}