# [−] [src] Module regex_syntax::hir

Defines a high-level intermediate representation for regular expressions.

## Modules

literal | Provides routines for extracting literal prefixes and suffixes from an `Hir`.
print | This module provides a regular expression printer for `Hir`.
translate | Defines a translator that converts an `Ast` to an `Hir`.

## Structs

ClassBytes | A set of characters represented by arbitrary bytes (where one byte corresponds to one character).
ClassBytesIter | An iterator over all ranges in a byte character class.
ClassBytesRange | A single range of characters represented by arbitrary bytes.
ClassUnicode | A set of characters represented by Unicode scalar values.
ClassUnicodeIter | An iterator over all ranges in a Unicode character class.
ClassUnicodeRange | A single range of characters represented by Unicode scalar values.
Error | An error that can occur while translating an `Ast` to a `Hir`.
Group | The high-level intermediate representation for a group.
Hir | A high-level intermediate representation (HIR) for a regular expression.
Repetition | The high-level intermediate representation of a repetition operator.

## Enums

Anchor | The high-level intermediate representation for an anchor assertion.
Class | The high-level intermediate representation of a character class.
ErrorKind | The type of an error that occurred while building an `Hir`.
GroupKind | The kind of group.
HirKind | The kind of an arbitrary `Hir` expression.
Literal | The high-level intermediate representation of a literal.
RepetitionKind | The kind of a repetition operator.
RepetitionRange | The kind of a counted repetition operator.
WordBoundary | The high-level intermediate representation for a word-boundary assertion.

## Traits

Visitor | A trait for visiting the high-level IR (HIR) in depth first order.

## Functions

visit | Executes an implementation of `Visitor` in constant stack space.

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g., `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g., `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g., `str,u8` or `String,struct:Vec,test`)