Function route_pattern::compile

source ·
pub fn compile(
    pattern: &str,
    dstart: char,
    dend: char
) -> Result<Regex, ParseError>
Expand description

Compile a route pattern. Get back a Regex which you can use as you see fit.

Errors

This function will return an error if parsing or regex compilation fails