pub struct ErrorContext {
pub file: Option<PathBuf>,
pub macro_stack: Vec<String>,
pub include_stack: Vec<PathBuf>,
}Expand description
Context information for error reporting
Provides a snapshot of the processor state when an error occurs, including the macro call stack and file include hierarchy.
Fields§
§file: Option<PathBuf>Current file being processed
macro_stack: Vec<String>Macro call stack (most recent last)
include_stack: Vec<PathBuf>Include stack showing file hierarchy
Trait Implementations§
Source§impl Clone for ErrorContext
impl Clone for ErrorContext
Source§fn clone(&self) -> ErrorContext
fn clone(&self) -> ErrorContext
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 moreSource§impl Debug for ErrorContext
impl Debug for ErrorContext
Auto Trait Implementations§
impl Freeze for ErrorContext
impl RefUnwindSafe for ErrorContext
impl Send for ErrorContext
impl Sync for ErrorContext
impl Unpin for ErrorContext
impl UnwindSafe for ErrorContext
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