Skip to main content

binary_method

Function binary_method 

Source
pub async fn binary_method<CM, CMFut, F, FFut>(
    stack: &mut Vec<Value>,
    method: &'static str,
    call_method: CM,
    fallback: F,
) -> Result<(), RuntimeError>
where CM: FnMut(Value, &'static str, Value) -> CMFut, CMFut: Future<Output = Result<Value, RuntimeError>>, F: FnMut(Value, Value) -> FFut, FFut: Future<Output = Result<Value, RuntimeError>>,