pub struct Error {
pub pos: usize,
pub msg: String,
}
Expand description
Error corresponds to something that can go wrong while parsing a regular expression.
(Once an expression is compiled, it is not possible to produce an error via searching, splitting or replacing.)
Fields§
§pos: usize
The approximate character index of where the error occurred.
msg: String
A message describing the error.
Trait Implementations§
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