Skip to content

Instantly share code, notes, and snippets.

View pierzchalski's full-sized avatar

Edward Pierzchalski pierzchalski

View GitHub Profile
anonymous
anonymous / playground.rs
Created September 11, 2015 13:19
Shared via Rust Playground
#![feature(fnbox)]
use std::boxed::FnBox;
use std::marker::PhantomData;
use std::mem::replace;
use std::fmt::{Debug, Formatter};
use std::fmt;
use std::collections::BTreeMap;
struct World {
magic: BTreeMap<usize, String>,