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:
parent
50bc0500d1
commit
e22a4399e6
|
@ -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")] {
|
||||
|
|
Loading…
Reference in a new issue