想问一下 一个Vec 怎么转成 一个HashSet, 使用 HashSet::from() 和 HashSet::from_iter()

📝

内容提要

想问一下 一个Vec 怎么转成 一个HashSet, 使用 HashSet::from() 和 HashSet::from_iter(), 已提供了playground 代码, 但是不会写.

🏷️

标签

➡️

继续阅读