Function rustc_trans::middle::typeck::check::method::lookupExperimental [-]  [+] [src]

pub fn lookup(fcx: &FnCtxt<'a, 'tcx>, span: Span, method_name: Name, self_ty: &'tcx TyS<'tcx>, supplied_method_types: Vec<&'tcx TyS<'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>(...):