Skip to content

Instantly share code, notes, and snippets.

Avatar

Jack Fransham jFransham

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