pub enum RegexParseError {
UnterminatedCaptureGroup,
UnterminatedCharSet,
InvalidEscapedChar(char),
InvalidAtom(char),
UnexpectedEOF,
}Variants§
UnterminatedCaptureGroup
A capture group (e.g. (abc)) was unterminated
UnterminatedCharSet
A character class set (e.g. [a-z]) was unterminated
InvalidEscapedChar(char)
An escaped symbol was invalid.
InvalidAtom(char)
UnexpectedEOF
Should only happen in debug settings, since it happens only when we call Atom::take("")
Trait Implementations§
Source§impl Debug for RegexParseError
impl Debug for RegexParseError
Source§impl Display for RegexParseError
impl Display for RegexParseError
Source§impl Error for RegexParseError
impl Error for RegexParseError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for RegexParseError
impl PartialEq for RegexParseError
impl Eq for RegexParseError
impl StructuralPartialEq for RegexParseError
Auto Trait Implementations§
impl Freeze for RegexParseError
impl RefUnwindSafe for RegexParseError
impl Send for RegexParseError
impl Sync for RegexParseError
impl Unpin for RegexParseError
impl UnwindSafe for RegexParseError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more