3 ms·
Rust doesn't allow specialization and likely never will because it's unsound https://www.reddit.com/r/rust/comments/1p346th/specialization_whats_unsound_about_i
by tick_tock_tick 9mo ago
Rust doesn't allow specialization and likely never will because it's unsound https://www.reddit.com/r/rust/comments/1p346th/specialization_whats_unsound_about_it/ https://www.reddit.com/r/rust/comments/1p346th/specializatio... has a couple of nice comments about it.
But yes it's basically
template <typename T, size_t N>
class Example {
vector<T> generic;
};
template<>
class Example<int32_t, 32> {
int bitpackinhere;
}