pub struct Context<'a> {
pub expression: &'a str,
pub runtime: &'a Runtime,
pub offset: usize,
}
Expand description
Context object used for error reporting.
The Context struct is mostly used when interacting between the interpreter and function implemenations. Unless you’re writing custom JMESPath functions, this struct is an implementation detail.
Fields§
§expression: &'a str
Expression string that is being interpreted.
runtime: &'a Runtime
JMESPath runtime used to compile the expression and call functions.
offset: usize
Ast offset that is currently being evaluated.
Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Context<'a>
impl<'a> !RefUnwindSafe for Context<'a>
impl<'a> Send for Context<'a>
impl<'a> Sync for Context<'a>
impl<'a> Unpin for Context<'a>
impl<'a> !UnwindSafe for Context<'a>
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