[][src]Enum fancy_regex::Error

pub enum Error {
    ParseError,
    UnclosedOpenParen,
    InvalidRepeat,
    RecursionExceeded,
    LookBehindNotConst,
    TrailingBackslash,
    InvalidEscape(String),
    UnclosedUnicodeName,
    InvalidHex,
    InvalidCodepointValue,
    InvalidClass,
    UnknownFlag(String),
    NonUnicodeUnsupported,
    InvalidBackref,
    InnerError(Error),
    InvalidGroupName,
    InvalidGroupNameBackref(String),
    NamedBackrefOnly,
    StackOverflow,
    BacktrackLimitExceeded,
    // some variants omitted
}

An error for the result of compiling or running a regex.

Variants

ParseError

General parsing error

UnclosedOpenParen

Opening parenthesis without closing parenthesis, e.g. (a|b

InvalidRepeat

Invalid repeat syntax

RecursionExceeded

Pattern too deeply nested

LookBehindNotConst

Look-behind assertion without constant size

TrailingBackslash

Backslash without following character

InvalidEscape(String)

Invalid escape

UnclosedUnicodeName

Unicode escape not closed

InvalidHex

Invalid hex escape

InvalidCodepointValue

Invalid codepoint for hex or unicode escape

InvalidClass

Invalid character class

UnknownFlag(String)

Unknown group flag

NonUnicodeUnsupported

Disabling Unicode not supported

InvalidBackref

Invalid back reference

InnerError(Error)

Regex crate error

InvalidGroupName

Couldn't parse group name

InvalidGroupNameBackref(String)

Invalid group id in escape sequence

NamedBackrefOnly

Once named groups are used you cannot refer to groups by number

StackOverflow

Max stack size exceeded for backtracking while executing regex.

BacktrackLimitExceeded

Max limit for backtracking count exceeded while executing the regex. Configure using RegexBuilder::backtrack_limit.

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

Auto Trait Implementations

impl RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.