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>(...):