pub enum ToRegexError {
BalancedUsed,
CaptureRefUsed,
FrontierUsed,
}
Available on crate feature
to-regex
only.Expand description
The error type for errors that can occur during conversion to regular expressions.
See try_to_regex
for more information.
Variants§
BalancedUsed
The input pattern includes a balanced pattern (eg. %b{}
) which cannot be represented by
regular expressions.
CaptureRefUsed
The input pattern includes a capture backreference (eg. %1
), but allow_capture_refs
was
set to false
.
FrontierUsed
The input pattern includes a frontier pattern (eg. %f[a-z]
), but allow_lookaround
was
set to false
.
Trait Implementations§
Source§impl Debug for ToRegexError
impl Debug for ToRegexError
Source§impl Display for ToRegexError
impl Display for ToRegexError
Source§impl Error for ToRegexError
impl Error for ToRegexError
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 ToRegexError
impl PartialEq for ToRegexError
impl Eq for ToRegexError
impl StructuralPartialEq for ToRegexError
Auto Trait Implementations§
impl Freeze for ToRegexError
impl RefUnwindSafe for ToRegexError
impl Send for ToRegexError
impl Sync for ToRegexError
impl Unpin for ToRegexError
impl UnwindSafe for ToRegexError
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