pub(crate) fn from_function_method( function: Box<Function>, has_body: bool, header: FnHeader, tcx: TyCtxt<'_>) -> Method