<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yiskw713</author_name>
  <author_url>https://blog.hatena.ne.jp/yiskw713/</author_url>
  <blog_title>yiskw note</blog_title>
  <blog_url>https://yiskw713.hatenablog.com/</blog_url>
  <categories>
    <anon>rust</anon>
  </categories>
  <description>RustでAtCoder ABC225のA - Distinct Stringsを解くにあたり， ベクタ型からHashSetを作る方法について調べたので，こちらにメモを残しておきます． 方法 Iterator型のfrom_iterを使用することで，ベクタ型からHashSetを作成できます． from_iterを使うには，std::iter::FromIteratorトレイトを使用します． use std::collections::HashSet; use std::iter::FromIterator; fn main() { let v: Vec&lt;u32&gt; = vec![2, 3, 5, …</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyiskw713.hatenablog.com%2Fentry%2F2022%2F01%2F09%2F130806&quot; title=&quot;【Rust】ベクタ型からHashSetを作る - yiskw note&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-01-09 13:08:06</published>
  <title>【Rust】ベクタ型からHashSetを作る</title>
  <type>rich</type>
  <url>https://yiskw713.hatenablog.com/entry/2022/01/09/130806</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
