Enum fancy_regex::Error [−][src]
pub enum Error {
Show variants
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
}Expand description
An error for the result of compiling or running a regex.
Variants
Expand description
General parsing error
Expand description
Opening parenthesis without closing parenthesis, e.g. (a|b
Expand description
Invalid repeat syntax
Expand description
Pattern too deeply nested
Expand description
Look-behind assertion without constant size
Expand description
Backslash without following character
InvalidEscape(String)Expand description
Invalid escape
Expand description
Unicode escape not closed
Expand description
Invalid hex escape
Expand description
Invalid codepoint for hex or unicode escape
Expand description
Invalid character class
UnknownFlag(String)Expand description
Unknown group flag
Expand description
Disabling Unicode not supported
Expand description
Invalid back reference
InnerError(Error)Expand description
Regex crate error
Expand description
Couldn’t parse group name
InvalidGroupNameBackref(String)Expand description
Invalid group id in escape sequence
Expand description
Once named groups are used you cannot refer to groups by number
Expand description
Max stack size exceeded for backtracking while executing regex.
Expand description
Max limit for backtracking count exceeded while executing the regex.
Configure using
RegexBuilder::backtrack_limit.
Trait Implementations
impl Error for Error[src]
impl Error for Error[src]fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>[src]
fn backtrace(&self) -> Option<&Backtrace>[src]backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str1.0.0[src]
fn description(&self) -> &str1.0.0[src]use the Display impl or to_string()
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> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more