Does Rust have Collection traits?

﹥>﹥吖頭↗ 提交于 2019-12-04 23:28:29

No, right now there's only Iterator. MutableMap and Map have been removed somewhere along the road to stabilization of std for Rust 1.0.

There have been various discussions about re-adding traits to std. See these discussions on Rust internals:

or (less recent but more specifically on collections):

Bottom line: everybody wants some form of those traits in std but nobody wants to commit adding and supporting the wrong ones in the standard library until a clearer picture of what is ergonomic emerges.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!