When the president of China addressed the Pacific Rim countries in Peru last month, he suggested that China was prepared to pick up the pieces of the Trans-Pacific Partnership, now abandoned by both political parties in the United States.