Function rustc::middle::typeck::check::method::lookupExperimental
[-]
[+]
[src]
pub fn lookup<'a, 'tcx>(fcx: &FnCtxt<'a, 'tcx>, span: Span, method_name: Name, self_ty: Ty<'tcx>, supplied_method_types: Vec<Ty<'tcx>>, call_expr: &Expr, self_expr: &Expr) -> Result<MethodCallee<'tcx>, MethodError>
Performs method lookup. If lookup is successful, it will return the callee
and store an appropriate adjustment for the self-expr. In some cases it may
report an error (e.g., invoking the drop method).
Arguments
Given a method call like foo.bar::<T1,...Tn>(...):
fcx: the surroundingFnCtxt(!)span: the span for the method callmethod_name: the name of the method being called (bar)self_ty: the (unadjusted) type of the self expression (foo)supplied_method_types: the explicit method type parameters, if any (T1..Tn)self_expr: the self expression (foo)