()
| 122 | } |
| 123 | |
| 124 | fn build_manual_impl_matcher() -> RegexMatcher { |
| 125 | RegexMatcherBuilder::new() |
| 126 | .multi_line(true) |
| 127 | .ignore_whitespace(true) |
| 128 | .build( |
| 129 | r#" |
| 130 | # Match manual impl VisitableTrait for Type |
| 131 | impl\s*(?:<[^>]+>\s*)? |
| 132 | VisitableTrait\s+for\s+ |
| 133 | # Capture the type name with optional generics |
| 134 | (\w+)(?:<[^>]+>)?"#, |
| 135 | ) |
| 136 | .unwrap() |
| 137 | } |
| 138 | |
| 139 | pub struct ManualImplMatcher<'a> { |
| 140 | matcher: &'a RegexMatcher, |
no outgoing calls
no test coverage detected