Retrieves the list of (name, value) pairs from a Struct.

Modeled as a module function rather than a method of Struct to avoid naming conflicts with the tuple attributes, and so as not to expose the user to this implementation-oriented functionality.

struct An instance of Struct.

The list of (name, value) pairs in which names can be None. Identical to the format that's accepted by the tuple constructor.

TypeError if the argument is not an Struct.