[][src]Function usher::capture::find_capture

pub fn find_capture<'a, 'p>(
    path: &'p str,
    capt: CapturesRef<'a>,
    name: &str
) -> Option<&'p str>

Retrieves a potential captured value from a parameter set by name.

This function uses the provided path and captures to locate a value set against the provided name. If multiple values exist, only the first value will be found.

This function will panic if the bounds provided are invalid for the provided path, although this should never happen in reality unless you're mocking captures.