Type.isBasicType

true if it is scalar type or void

struct Type
bool isBasicType;

Meta