pub enum Error {
EmptyParens,
EmptyRegex,
InvalidClass,
InvalidEscape(char),
InvalidRepetition,
ReTooLong,
TooManyParens,
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
TooManyParens
Too many parens in the provided regex
UnbalancedAlt
Alternation without a right hand side
UnbalancedParens
Unbalanced parens
UnclosedGroupName(String)
Group name without a closing paren
UnknownGroupQualifier(char)
Invalid group qualifier following (?…)
Trait Implementations§
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§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.