Struct regex_syntax::hir::Error[][src]

pub struct Error {
    kind: ErrorKind,
    pattern: String,
    span: Span,
}

An error that can occur while translating an Ast to a Hir.

Fields

The kind of error.

The original pattern that the translator's Ast was parsed from. Every span in an error is a valid range into this string.

The span of this error, derived from the Ast given to the translator.

Methods

impl Error
[src]

Return the type of this error.

The original pattern string in which this error occurred.

Every span reported by this error is reported in terms of this string.

Return the span at which this error occurred.

Trait Implementations

impl From<Error> for Error
[src]

Performs the conversion.

impl<'e> From<&'e Error> for Formatter<'e, ErrorKind>
[src]

Performs the conversion.

impl Clone for Error
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

impl Eq for Error
[src]

impl PartialEq for Error
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Error for Error
[src]

This method is soft-deprecated. Read more

The lower-level cause of this error, if any. Read more

🔬 This is a nightly-only experimental API. (error_type_id)

unclear whether to commit to this public implementation detail

Get the TypeId of self

impl Display for Error
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Error

impl Sync for Error