diff --git a/actix-router/src/regex_set.rs b/actix-router/src/regex_set.rs index fe93c1d20..48f38df2c 100644 --- a/actix-router/src/regex_set.rs +++ b/actix-router/src/regex_set.rs @@ -42,6 +42,7 @@ impl RegexSet { } } + /// Returns true if regex set matches `path`. pub(crate) fn is_match(&self, path: &str) -> bool { cfg_if! { if #[cfg(feature = "unicode")] { @@ -52,6 +53,7 @@ impl RegexSet { } } + /// Returns index within `path` of first match. pub(crate) fn first_match_idx(&self, path: &str) -> Option { cfg_if! { if #[cfg(feature = "unicode")] {