Returns the total number of capturing groups. This is always at least `1` since every regex has at least `1` capturing group that corresponds to the entire match.
(&self)
| 46 | /// This is always at least `1` since every regex has at least `1` |
| 47 | /// capturing group that corresponds to the entire match. |
| 48 | pub fn len(&self) -> usize { |
| 49 | self.0.len() / 2 |
| 50 | } |
| 51 | |
| 52 | /// Return the individual slots as a slice. |
| 53 | pub(crate) fn as_slots(&mut self) -> &mut [Slot] { |