Vec in std::vec rather than std::collections?


Is there any reason that Vec is located in std::vec rather than std::collections, where all other collections are located? Is this simply for backwards compatibility or is it a design choice?


It might be due to the fact that Vec is a very basic “collection”, usually just called a dynamically sized array.