<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rightgo09</author_name>
  <author_url>https://blog.hatena.ne.jp/rightgo09/</author_url>
  <blog_title>Perl日記</blog_title>
  <blog_url>https://r9.hateblo.jp/</blog_url>
  <categories>
    <anon>Rust</anon>
  </categories>
  <description>to_owned() https://doc.rust-lang.org/std/borrow/trait.ToOwned.html#tymethod.to_owned ＆の参照に対して使う 参照元の値をクローンする クローンした上で所有権も新規にする（参照元の方の所有権はそのまま） 例 fn main() { { let s1: &amp;str = &quot;foo&quot;; let s2: &amp;str = (&amp;s1).to_owned(); println!(&quot;{}&quot;, s1); println!(&quot;{}&quot;, s2); } { let s1: String = &quot;bar&quot;.to_string(); let s2…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fr9.hateblo.jp%2Fentry%2F2022%2F06%2F07%2F213537&quot; title=&quot;Rust の to_owned() って何 - Perl日記&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-06-07 21:35:37</published>
  <title>Rust の to_owned() って何</title>
  <type>rich</type>
  <url>https://r9.hateblo.jp/entry/2022/06/07/213537</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
