I'm learning Rust and it is not clear to me if it is possible to have a Rust struct parametrized with some values (as well as types). In order to be more clear, is it possible in Rust to build a struct that mimic the behaviour of this C++ struct?
template <int dim, class T>
struct Data
{
std::array<T, dim> data_;
};