1
0
Fork 0
mirror of https://github.com/actix/actix-web.git synced 2024-06-13 02:39:32 +00:00

docs: add docs within RegexSet module

This commit is contained in:
Rob Ede 2024-03-03 15:05:32 +00:00
parent 50bc0500d1
commit e22a4399e6
No known key found for this signature in database
GPG key ID: 97C636207D3EF933

View file

@ -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<usize> {
cfg_if! {
if #[cfg(feature = "unicode")] {