From e22a4399e67a21fd491246e34f7888bea783dc77 Mon Sep 17 00:00:00 2001 From: Rob Ede Date: Sun, 3 Mar 2024 15:05:32 +0000 Subject: [PATCH] docs: add docs within RegexSet module --- actix-router/src/regex_set.rs | 2 ++ 1 file changed, 2 insertions(+) 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")] {