[][src]Struct rexpr::runtime::RExprRuntime

pub struct RExprRuntime {
    pub expr_cache: DashMap<String, Node>,
    pub token_map: TokenMap<'static>,
}

the express engine for exe code on runtime

Fields

expr_cache: DashMap<String, Node>token_map: TokenMap<'static>

Implementations

impl RExprRuntime[src]

pub fn new() -> Self[src]

pub fn eval(&self, expr: &str, arg: &Value) -> Result<Value, Error>[src]

eval express with arg value,if cache have value it will no run lexer expr.

pub fn eval_no_cache(
    &self,
    lexer_arg: &str,
    arg: &Value
) -> Result<Value, Error>
[src]

no cache mode to run engine

pub fn parse(&self, lexer_arg: &str) -> Result<Node, Error>[src]

parse get node

Trait Implementations

impl Debug for RExprRuntime[src]

Auto Trait Implementations

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.