Function rustc::middle::typeck::check::method::lookupExperimental
[-]
[+]
[src]
pub fn lookup(fcx: &FnCtxt, span: Span, method_name: Name, self_ty: t, supplied_method_types: Vec<t>, call_expr_id: NodeId, self_expr: &Expr) -> Result<MethodCallee, 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)