inspect: use constexpr instead of enum