pub struct RexactError {
pub kind: ErrorCode,
pub detail: Option<String>,
pub position: Option<(usize, usize)>,
}Expand description
A located catalogue error. position is (line, column), 1-based, counted
in Unicode scalar values (docs/07 rule 2).
Fields§
§kind: ErrorCodeWhich catalogue entry this is.
detail: Option<String>Optional detail appended to the catalogue meaning.
position: Option<(usize, usize)>Position in the pattern text, when the error relates to one.
Implementations§
Source§impl RexactError
impl RexactError
Trait Implementations§
Source§impl Clone for RexactError
impl Clone for RexactError
Source§impl Debug for RexactError
impl Debug for RexactError
Source§impl Display for RexactError
impl Display for RexactError
impl Eq for RexactError
Source§impl Error for RexactError
impl Error for RexactError
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 RexactError
impl PartialEq for RexactError
impl StructuralPartialEq for RexactError
Auto Trait Implementations§
impl Forget for RexactError
impl Freeze for RexactError
impl RefUnwindSafe for RexactError
impl Send for RexactError
impl Sync for RexactError
impl Unpin for RexactError
impl UnsafeUnpin for RexactError
impl UnwindSafe for RexactError
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