compile

Function 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