Lines Matching defs:kind
27 /// The kind of error.
28 kind: ErrorKind,
38 pub fn kind(&self) -> &ErrorKind {
39 &self.kind
121 self.kind.description()
158 /// The specific type of an HIR expression can be accessed via its `kind`
176 /// The underlying HIR kind.
177 kind: HirKind,
182 /// The kind of an arbitrary `Hir` expression.
218 /// Returns a reference to the underlying HIR kind.
219 pub fn kind(&self) -> &HirKind {
220 &self.kind
227 mem::replace(&mut self.kind, HirKind::Empty)
246 Hir { kind: HirKind::Empty, info }
271 Hir { kind: HirKind::Literal(lit), info }
288 Hir { kind: HirKind::Class(class), info }
321 Hir { kind: HirKind::Anchor(anchor), info }
348 Hir { kind: HirKind::WordBoundary(word_boundary), info }
375 Hir { kind: HirKind::Repetition(rep), info }
392 Hir { kind: HirKind::Group(group), info }
483 Hir { kind: HirKind::Concat(exprs), info }
545 Hir { kind: HirKind::Alternation(exprs), info }
701 /// this kind is the `Empty` variant. To get the inductive definition,
710 /// Returns true if and only if this kind has any (including possibly
1340 /// The kind of this group. If it is a capturing group, then the kind
1343 pub kind: GroupKind,
1348 /// The kind of group.
1372 /// The kind of this repetition operator.
1373 pub kind: RepetitionKind,
1397 match self.kind {
1408 /// The kind of a repetition operator.
1421 /// The kind of a counted repetition operator.
1438 match *self.kind() {
1444 HirKind::Group(ref x) if !x.hir.kind.has_subexprs() => return,
1445 HirKind::Repetition(ref x) if !x.hir.kind.has_subexprs() => return,
1453 match expr.kind {
2266 kind: GroupKind::NonCapturing,
2270 kind: RepetitionKind::ZeroOrOne,
2276 kind: HirKind::Concat(vec![expr]),
2280 kind: HirKind::Alternation(vec![expr]),
2284 assert!(!expr.kind.is_empty());