Function expry::expry_slice_func

source ·
pub fn expry_slice_func<'a, 'b, 'c, 'd>(
    bytecode: BytecodeRef<'b>,
    values: &mut Vec<EncodedValueRef<'b>>,
    allocator: &'a mut MemoryScope<'c>,
    funcs: &'a dyn CustomFuncs<'d>
) -> Result<EncodedValueRef<'b>, EvalError<'b>>where
    'c: 'b,
    'b: 'a,
    'd: 'b,
Expand description

Evaluate expression bytecode in the context of the given value, resulting in an encoded value. This version supports custom user defined functions.

This object can be directly transfered over a wire.

This version is cheaper because values can be included directly in encoded form, so a decoding step is skipped.