Lines Matching defs:group
201 /// A possibly capturing group, which contains a child expression.
378 /// Creates a group HIR expression.
379 pub fn group(group: Group) -> Hir {
381 info.set_always_utf8(group.hir.is_always_utf8());
382 info.set_all_assertions(group.hir.is_all_assertions());
383 info.set_anchored_start(group.hir.is_anchored_start());
384 info.set_anchored_end(group.hir.is_anchored_end());
385 info.set_line_anchored_start(group.hir.is_line_anchored_start());
386 info.set_line_anchored_end(group.hir.is_line_anchored_end());
387 info.set_any_anchored_start(group.hir.is_any_anchored_start());
388 info.set_any_anchored_end(group.hir.is_any_anchored_end());
389 info.set_match_empty(group.hir.is_match_empty());
392 Hir { kind: HirKind::Group(group), info }
1331 /// The high-level intermediate representation for a group.
1333 /// This represents one of three possible group types:
1335 /// 1. A non-capturing group (e.g., `(?:expr)`).
1336 /// 2. A capturing group (e.g., `(expr)`).
1337 /// 3. A named capturing group (e.g., `(?P<name>expr)`).
1340 /// The kind of this group. If it is a capturing group, then the kind
1341 /// contains the capture group index (and the name, if it is a named
1342 /// group).
1344 /// The expression inside the capturing group, which may be empty.
1348 /// The kind of group.
1351 /// A normal unnamed capturing group.
1353 /// The value is the capture index of the group.
1355 /// A named capturing group.
1357 /// The name of the group.
1359 /// The capture index of the group.
1362 /// A non-capturing group.
2265 expr = Hir::group(Group {