MCPcopy Create free account
hub / github.com/davidblewett/rure-python / len

Method len

regex/src/re_trait.rs:48–50  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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] {

Callers 1

nextMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected