Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一些 struct Animal。我想在Vec<Animal>. 我相信正确的方法是创建一个名为Animals. 但是,制作这个包装器的正确对象是什么?一个结构?一个枚举?还有什么?
Animal
Vec<Animal>
Animals