[PATCH v12 2/5] rust: support formatting of foreign types