pub enum Error {
EmptyParens,
EmptyRegex,
InvalidClass,
InvalidEscape(char),
InvalidRepetition,
ReTooLong,
UnbalancedAlt,
UnbalancedParens,
UnclosedGroupName(String),
UnknownGroupQualifier(char),
}Expand description
Errors that can be returned by the regex engine
Variants§
EmptyParens
Empty parens
EmptyRegex
Empty string used when creating a Regex
InvalidClass
Invalid regex class
InvalidEscape(char)
Invalid escape sequence
InvalidRepetition
Invalid repetition pattern
ReTooLong
The provided regex is too long
UnbalancedAlt
Alternation without a right hand side
UnbalancedParens
Unbalanced parens
UnclosedGroupName(String)
Group name without a closing ‘<’
UnknownGroupQualifier(char)
Invalid group qualifier following (?…)
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0§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§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.