pub fn closure_params<F>(f: F) -> ParticleClosure
where
    F: Fn(ParticleParameters, Args) -> Result<JValue, JValue> + Send + Sync + 'static,
{
    Arc::new(move |particle, args| into_record(f(particle, args)))
}
/// 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_params<F>(f: F) -> ParticleClosure
where
    F: Fn(ParticleParameters, Args) -> Result<JValue, JValue> + Send + Sync + 'static,
{
    Arc::new(move |particle, args| into_record(f(particle, args)))
}
pub fn closure_params < F > ( f : F ) -> ParticleClosure where F : Fn ( ParticleParameters , Args ) -> Result < JValue , JValue > + Send + Sync + ' static , { Arc :: new ( move | particle , args | into_record ( f ( particle , args ) ) ) }
Converts Fn into Closure, converting error into Option<IValue>
Converts Fn into Closure converting error into Option<IValue >
f
F