Trait RouteMatcherRef

Source
pub trait RouteMatcherRef {
    // Required methods
    fn matches(&self, path: &str) -> bool;
    fn params(&self, path: &str) -> Params;
}
Expand description

Extracts parameters from a URL path.

Required Methods§

Source

fn matches(&self, path: &str) -> bool

Returns whether the given path is a match for the route.

Source

fn params(&self, path: &str) -> Params

Returns the parameters extracted from the given path.

Implementors§