pub struct Context {
pub path: Option<PathBuf>,
pub content: Option<String>,
pub line_index: Option<usize>,
pub column_index: Option<usize>,
}
Expand description
Represents parsing/execution context, specifically, which file and where in the file something is happening.
Fields§
§path: Option<PathBuf>
§content: Option<String>
§line_index: Option<usize>
§column_index: Option<usize>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnwindSafe for Context
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