Skip to main content

RbatisAST

Trait RbatisAST 

Source
pub trait RbatisAST:
    Send
    + Sync
    + Debug {
    // Required methods
    fn name() -> &'static str
       where Self: Sized;
    fn eval(
        &self,
        convert: &dyn StringConvert,
        env: &mut Value,
        engine: &RExprRuntime,
        arg_result: &mut Vec<Value>,
        arg_sql: &mut String,
    ) -> Result<Value, Error>;
}
Expand description

Abstract syntax tree node

Required Methods§

Source

fn name() -> &'static str
where Self: Sized,

Source

fn eval( &self, convert: &dyn StringConvert, env: &mut Value, engine: &RExprRuntime, arg_result: &mut Vec<Value>, arg_sql: &mut String, ) -> Result<Value, Error>

Implementors§