pub fn closure<F>(f: F) -> Closure
where
    F: Fn(std::vec::IntoIter<JValue>) -> Result<JValue, JValue> + Send + Sync + 'static,
{
    Arc::new(move |Args { function_args, .. }| into_record(f(function_args.into_iter())))
}
/// Converts Fn into Closure, converting error into Option<IValue>
Converts Fn into Closure, converting error into Option
Converts Fn into Closure converting error into Option
pub fn closure<F>(f: F) -> Closure
where
    F: Fn(std::vec::IntoIter<JValue>) -> Result<JValue, JValue> + Send + Sync + 'static,
{
    Arc::new(move |Args { function_args, .. }| into_record(f(function_args.into_iter())))
}
pub fn closure < F > ( f : F ) -> Closure where F : Fn ( std :: vec :: IntoIter < JValue > ) -> Result < JValue , JValue > + Send + Sync + ' static , { Arc :: new ( move | Args { function_args , .. } | into_record ( f ( function_args . into_iter ( ) ) ) ) }
Converts Fn into Closure, converting error into Option<IValue>
Converts Fn into Closure converting error into Option<IValue >
f
F