Skip to content

Instantly share code, notes, and snippets.

@Thinkofname
Thinkofname / playground.rs
Created April 11, 2016 15:21 — forked from anonymous/playground.rs
Shared via Rust Playground
#![feature(specialization)]
use std::marker::PhantomData;
#[derive(Clone, Copy)]
struct Key<K, V> {
_k: PhantomData<K>,
_v: PhantomData<V>,
}
trait KeyType<N> {