# Enum regex::Error [−] [src]

    pub enum Error {
        Syntax(Error),
        CompiledTooBig(usize),
        InvalidSet,
        // some variants omitted
    }

An error that occurred during parsing or compiling a regular expression.

## Variants

`Syntax` | A syntax error. |
`CompiledTooBig` | The compiled program exceeded the set size limit. The argument is the size limit imposed. |
`InvalidSet` | DEPRECATED: Will be removed on next major version bump. This error is no longer used. (A `RegexSet` can now contain zero or more regular expressions.) |

## Trait Implementations

### `impl Error for Error`

#### `fn description(&self) -> &str`

#### `fn cause(&self) -> Option<&Error>`

### `impl Display for Error`

#### `fn fmt(&self, f: &mut Formatter) -> Result`

### `impl From<Error> for Error`

#### `fn from(err: Error) -> Error`

### Derived Implementations

### `impl Debug for Error`

#### `fn fmt(&self, __arg_0: &mut Formatter) -> Result`

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

## 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`)