Function clippy_utils::nth_arg
source · pub fn nth_arg<'tcx>(
cx: &LateContext<'tcx>,
fn_item: HirId,
nth: usize
) -> Ty<'tcx>
Expand description
Convenience function to get the nth argument type of a function.
pub fn nth_arg<'tcx>(
cx: &LateContext<'tcx>,
fn_item: HirId,
nth: usize
) -> Ty<'tcx>
Convenience function to get the nth argument type of a function.