It's not clear what you're asking for. polars_core::datatypes::DataType is an enum that does not implement BitOr. It's not a trait, so dyn DataType doesn't make sense. Can you restate what your goal is? Can you give a code sample without attempts at brevity that compiles and demonstrates how you intend to use this alias?
Oh, are you asking for an alias you can use in a match, like this?
match data_type {
DataType::Int32 | DataType::Float64 => { ... }
// replaced by...
PRIM => { ... }
The only way to do that is to define a macro. The | here is not a BitOr operator but part of pattern syntax — it's not any single value.