pub enum RegexCompileError {
PatternTooLong {
len: usize,
max: usize,
},
CompileError {
pattern: String,
message: String,
},
}Expand description
Error during regex compilation.
Variants§
PatternTooLong
Pattern exceeds the maximum allowed length.
CompileError
The pattern could not be compiled by either backend.
Trait Implementations§
Source§impl Clone for RegexCompileError
impl Clone for RegexCompileError
Source§fn clone(&self) -> RegexCompileError
fn clone(&self) -> RegexCompileError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RegexCompileError
impl Debug for RegexCompileError
Source§impl Display for RegexCompileError
impl Display for RegexCompileError
Source§impl Error for RegexCompileError
impl Error for RegexCompileError
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()
Auto Trait Implementations§
impl Freeze for RegexCompileError
impl RefUnwindSafe for RegexCompileError
impl Send for RegexCompileError
impl Sync for RegexCompileError
impl Unpin for RegexCompileError
impl UnsafeUnpin for RegexCompileError
impl UnwindSafe for RegexCompileError
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