(ngroups: usize)
| 255 | } |
| 256 | |
| 257 | fn empty_caps(ngroups: usize) -> Caps { |
| 258 | let mut v = Vec::with_capacity(ngroups + 1); |
| 259 | for _ in 0..=ngroups { v.push(None); } |
| 260 | v |
| 261 | } |
| 262 | |
| 263 | fn is_single(node: &Node) -> bool { |
| 264 | matches!(node, Node::Char(_) | Node::AnyChar | Node::Class { .. }) |
no test coverage detected