fn is_generic(function: &Fn) -> bool
Returns whether the given nested function has generic parameters.