[−][src]Macro jsonlogic::compute_const
Expects a function typically used for JsonLogic operators in the scope this macro is called in:
ⓘThis example is not tested
fn compute(args: &[Expression], data: &Data) -> Value
Calls the compute
function with the given arguments wrapped in Expression::Constant
and an
empty data object created with Data::empty()
.