[−][src]Struct jmespatch::Context
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.
Methods
impl<'a> Context<'a>
[src]
pub fn new(expression: &'a str, runtime: &'a Runtime) -> Context<'a>
[src]
Create a new context struct.
Auto Trait Implementations
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,