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

Method flags

regex/regex-syntax/src/ast/mod.rs:1204–1209  ·  view source on GitHub ↗

If this group is non-capturing, then this returns the (possibly empty) set of flags. Otherwise, `None` is returned.

(&self)

Source from the content-addressed store, hash-verified

1202 /// If this group is non-capturing, then this returns the (possibly empty)
1203 /// set of flags. Otherwise, `None` is returned.
1204 pub fn flags(&self) -> Option<&Flags> {
1205 match self.kind {
1206 GroupKind::NonCapturing(ref flags) => Some(flags),
1207 _ => None,
1208 }
1209 }
1210
1211 /// Returns true if and only if this group is capturing.
1212 pub fn is_capturing(&self) -> bool {

Callers 1

push_groupMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected