Struct route_recognizer::Router [] [src]

pub struct Router<T> {
    // some fields omitted
}

Methods

impl<T> Router<T>

fn new() -> Router<T>

fn add(&mut self, route: &str, dest: T)

fn recognize<'a>(&'a self, path: &str) -> Result<Match<&'a T>, String>

Trait Implementations

Derived Implementations

impl<T: Clone> Clone for Router<T>

fn clone(&self) -> Router<T>

fn clone_from(&mut self, source: &Self)