[][src]Struct jmespatch::Context

pub struct Context<'a> {
    pub expression: &'a str,
    pub runtime: &'a Runtime,
    pub offset: usize,
}

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.