• Home
  • Raw
  • Download

Lines Matching refs:Hir

175 pub struct Hir {  struct
208 Concat(Vec<Hir>),
214 Alternation(Vec<Hir>),
217 impl Hir { implementation
233 pub fn empty() -> Hir { in empty()
246 Hir { kind: HirKind::Empty, info } in empty()
254 pub fn literal(lit: Literal) -> Hir { in literal() argument
271 Hir { kind: HirKind::Literal(lit), info } in literal()
275 pub fn class(class: Class) -> Hir { in class() argument
288 Hir { kind: HirKind::Class(class), info } in class()
292 pub fn anchor(anchor: Anchor) -> Hir { in anchor() argument
321 Hir { kind: HirKind::Anchor(anchor), info } in anchor()
325 pub fn word_boundary(word_boundary: WordBoundary) -> Hir { in word_boundary() argument
348 Hir { kind: HirKind::WordBoundary(word_boundary), info } in word_boundary()
352 pub fn repetition(rep: Repetition) -> Hir { in repetition() argument
375 Hir { kind: HirKind::Repetition(rep), info } in repetition()
379 pub fn group(group: Group) -> Hir { in group() argument
392 Hir { kind: HirKind::Group(group), info } in group()
398 pub fn concat(mut exprs: Vec<Hir>) -> Hir { in concat() argument
400 0 => Hir::empty(), in concat()
483 Hir { kind: HirKind::Concat(exprs), info } in concat()
491 pub fn alternation(mut exprs: Vec<Hir>) -> Hir { in alternation() argument
493 0 => Hir::empty(), in alternation()
545 Hir { kind: HirKind::Alternation(exprs), info } in alternation()
558 pub fn dot(bytes: bool) -> Hir { in dot() argument
563 Hir::class(Class::Bytes(cls)) in dot()
568 Hir::class(Class::Unicode(cls)) in dot()
580 pub fn any(bytes: bool) -> Hir { in any() argument
584 Hir::class(Class::Bytes(cls)) in any()
588 Hir::class(Class::Unicode(cls)) in any()
733 impl fmt::Display for Hir { implementation
1345 pub hir: Box<Hir>,
1383 pub hir: Box<Hir>,
1434 impl Drop for Hir { implementation
1451 let mut stack = vec![mem::replace(self, Hir::empty())]; in drop()
1460 stack.push(mem::replace(&mut x.hir, Hir::empty())); in drop()
1463 stack.push(mem::replace(&mut x.hir, Hir::empty())); in drop()
2250 Hir::literal(Literal::Byte(b'a')); in hir_byte_literal_non_ascii()
2263 let mut expr = Hir::empty(); in no_stack_overflow_on_drop()
2265 expr = Hir::group(Group { in no_stack_overflow_on_drop()
2269 expr = Hir::repetition(Repetition { in no_stack_overflow_on_drop()
2275 expr = Hir { in no_stack_overflow_on_drop()
2279 expr = Hir { in no_stack_overflow_on_drop()