method1

Function method1 

Source
pub fn method1<F>(f: F) -> Value
where F: Fn(&Value) -> Result<Value> + 'static,