Functions§

  • 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.