Error in regex_syntax - Rust (original) (raw)


#[non_exhaustive]

pub enum Error {
    Parse(Error),
    Translate(Error),
}

Expand description

This error type encompasses any error that can be returned by this crate.

This error type is marked as non_exhaustive. This means that adding a new variant is not considered a breaking change.

This enum is marked as non-exhaustive

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.

§

An error that occurred while translating concrete syntax into abstract syntax (AST).

§

An error that occurred while translating abstract syntax into a high level intermediate representation (HIR).

Source§

Source§

Source§

Source§

Available on crate feature std only.

1.30.0 · Source§

Returns the lower-level source of this error, if any. Read more

1.0.0 · Source§

👎Deprecated since 1.42.0: use the Display impl or to_string()

1.0.0 · Source§

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting

Source§

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

Provides type-based access to context intended for error reports. Read more

Source§

Source§

Converts to this type from the input type.

Source§

Source§

Converts to this type from the input type.

Source§

Source§

Tests for self and other values to be equal, and is used by ==.

1.0.0 · Source§

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Source§

Source§

§

§

§

§

§

§