Skip to content

Instantly share code, notes, and snippets.

@jFransham
jFransham / stack_router.rs
Last active August 26, 2016 12:00 — forked from anonymous/playground.rs
Trying to improve on the Iron router's performance without sacrificing ergonomics
#![feature(pattern)]
use std::str::pattern::Pattern;
use std::marker::PhantomData;
#[derive(PartialEq, Eq)]
enum Method {
Get,
Post,
Put,