Struct route_recognizer::Router
[−]
[src]
pub struct Router<T> { /* fields omitted */ }Methods
impl<T> Router<T>[src]
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
impl<T: Clone> Clone for Router<T>[src]
fn clone(&self) -> Router<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more