Struct pcre2::Error[][src]

pub struct Error { /* fields omitted */ }

A PCRE2 error.

An error can occur during compilation or during matching. The kind of this error indicates the type of operation being performed when the error occurred.

Methods

impl Error
[src]

Return the kind of this error.

The kind indicates the type of operation that was attempted which resulted in this error.

Return the raw underlying PCRE2 error code.

This can be useful if one needs to determine exactly which error occurred, which can be done with case analysis over the constants exported in the pcre2-sys crate.

Return the underlying offset associated with this error, if one exists.

The offset is typically only available for compile time errors, and is supposed to indicate the general position in the pattern where an error occurred.

Trait Implementations

impl Clone for Error
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Error for Error
[src]

This method is soft-deprecated. Read more

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

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl Debug for Error
[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for Error

impl Sync for Error