As you are expecting ```rec``` to implement a specific interface, could you add a docstring saying what's ```rec``` (or equivalently ```rectype```)?