rustc_hir_typeck::fn_ctxt

Module adjust_fulfillment_errors

Source

Functionsยง

  • find_param_in_ty ๐Ÿ”’
    Traverses the given ty (either a ty::Ty or a ty::GenericArg) and searches for references to the given param_to_point_at. Returns true if it finds any use of the param.
  • Returns Some(iterator.next()) if it has exactly one item, and None otherwise.