(pat: &str, haystack: &str)
| 159 | nada!("re-rust", count_rust); |
| 160 | #[cfg(feature = "re-rust")] |
| 161 | fn count_rust(pat: &str, haystack: &str) -> usize { |
| 162 | use regex::Regex; |
| 163 | Regex::new(pat).unwrap().find_iter(haystack).count() |
| 164 | } |
| 165 | |
| 166 | nada!("re-rust-bytes", count_rust_bytes); |
| 167 | #[cfg(feature = "re-rust-bytes")] |