pub enum RegexAstError {
NonAsciiChar {
span: Range<usize>,
},
UnknownEscape {
span: Range<usize>,
c: char,
},
}
Expand description
Errors related to a regex AST.
Variants§
NonAsciiChar
A non ascii character is present in the regex.
UnknownEscape
An unknown escape sequence is present in the regex.
Trait Implementations§
Source§impl Clone for RegexAstError
impl Clone for RegexAstError
Source§fn clone(&self) -> RegexAstError
fn clone(&self) -> RegexAstError
Returns a copy of the value. Read more
1.0.0 · 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 RegexAstError
impl Debug for RegexAstError
Source§impl From<RegexAstError> for CompilationError
impl From<RegexAstError> for CompilationError
Source§fn from(err: RegexAstError) -> Self
fn from(err: RegexAstError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RegexAstError
impl RefUnwindSafe for RegexAstError
impl Send for RegexAstError
impl Sync for RegexAstError
impl Unpin for RegexAstError
impl UnwindSafe for RegexAstError
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