[−][src]Struct rexpr::runtime::RExprRuntime
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]
&self,
lexer_arg: &str,
arg: &Value
) -> Result<Value, Error>
no cache mode to run engine
pub fn parse(&self, lexer_arg: &str) -> Result<Node, Error>
[src]
parse get node
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for RExprRuntime
[src]
impl Send for RExprRuntime
[src]
impl Sync for RExprRuntime
[src]
impl Unpin for RExprRuntime
[src]
impl UnwindSafe for RExprRuntime
[src]
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,
pub 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.
pub 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>,