pub struct ErrorContext<R: RuleId> {
pub rule_id: R,
pub span: Span,
pub message: String,
}Expand description
Context information for error reporting, tracking where an error occurred.
Fields§
§rule_id: RRule ID where the error occurred.
span: SpanSpan where the error occurred.
message: StringContextual message describing what was being parsed.
Trait Implementations§
Source§impl<R: Clone + RuleId> Clone for ErrorContext<R>
impl<R: Clone + RuleId> Clone for ErrorContext<R>
Source§fn clone(&self) -> ErrorContext<R>
fn clone(&self) -> ErrorContext<R>
Returns a duplicate 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 moreAuto Trait Implementations§
impl<R> Freeze for ErrorContext<R>where
R: Freeze,
impl<R> RefUnwindSafe for ErrorContext<R>where
R: RefUnwindSafe,
impl<R> Send for ErrorContext<R>
impl<R> Sync for ErrorContext<R>
impl<R> Unpin for ErrorContext<R>where
R: Unpin,
impl<R> UnwindSafe for ErrorContext<R>where
R: UnwindSafe,
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