Struct route_recognizer::Router
[-] [+]
[src]
pub struct Router<T> { // some fields omitted }
pub struct Router<T> { // some fields omitted }
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>
impl<T: Clone> Clone for Router<T> where T: Clone
fn clone(&self) -> Router<T>
fn clone_from(&mut self, source: &Self)
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).