<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: LisiurDay</title>
    <description>The latest articles on DEV Community by LisiurDay (@lisiur).</description>
    <link>https://dev.to/lisiur</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F662744%2F731825f3-e6f0-4a4d-9609-e0d6822dbc66.jpeg</url>
      <title>DEV Community: LisiurDay</title>
      <link>https://dev.to/lisiur</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lisiur"/>
    <language>en</language>
    <item>
      <title>Answer: What are the differences between Rust's `String` and `str`?</title>
      <dc:creator>LisiurDay</dc:creator>
      <pubDate>Wed, 14 Jul 2021 09:19:36 +0000</pubDate>
      <link>https://dev.to/lisiur/answer-what-are-the-differences-between-rust-s-string-and-str-2ke5</link>
      <guid>https://dev.to/lisiur/answer-what-are-the-differences-between-rust-s-string-and-str-2ke5</guid>
      <description>&lt;div class="ltag__stackexchange--container"&gt;
  &lt;div class="ltag__stackexchange--title-container"&gt;
    
      &lt;div class="ltag__stackexchange--title"&gt;
        &lt;h1&gt;
          &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--7Gn-iPj_--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackoverflow-logo-b42691ae545e4810b105ee957979a853a696085e67e43ee14c5699cf3e890fb4.svg" alt=""&gt;
            &lt;a href="https://stackoverflow.com/questions/24158114/what-are-the-differences-between-rusts-string-and-str/51564920#51564920" rel="noopener noreferrer"&gt;
              &lt;span class="title-flare"&gt;answer&lt;/span&gt; re:  What are the differences between Rust's `String` and `str`?
            &lt;/a&gt;
        &lt;/h1&gt;
        &lt;div class="ltag__stackexchange--post-metadata"&gt;
          &lt;span&gt;Jul 27 '18&lt;/span&gt;
        &lt;/div&gt;
      &lt;/div&gt;
      &lt;a class="ltag__stackexchange--score-container" href="https://stackoverflow.com/questions/24158114/what-are-the-differences-between-rusts-string-and-str/51564920#51564920" rel="noopener noreferrer"&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--Y9mJpuJP--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-up-eff2e2849e67d156181d258e38802c0b57fa011f74164a7f97675ca3b6ab756b.svg" alt=""&gt;
        &lt;div class="ltag__stackexchange--score-number"&gt;
          37
        &lt;/div&gt;
        &lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--wif5Zq3z--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev.to/assets/stackexchange-arrow-down-4349fac0dd932d284fab7e4dd9846f19a3710558efde0d2dfd05897f3eeb9aba.svg" alt=""&gt;
      &lt;/a&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--body"&gt;
    
&lt;p&gt;They are actually completely different. First off, a &lt;code&gt;str&lt;/code&gt; is nothing but a type level thing; it can only be reasoned about at the type level because it's a so-called dynamically-sized type (DST). The size the &lt;code&gt;str&lt;/code&gt; takes up cannot be known at compile time and depends on runtime information…&lt;/p&gt;
    
  &lt;/div&gt;
  &lt;div class="ltag__stackexchange--btn--container"&gt;
    
      &lt;a href="https://stackoverflow.com/questions/24158114/what-are-the-differences-between-rusts-string-and-str/51564920#51564920" rel="noopener noreferrer"&gt;Open Full Answer&lt;/a&gt;
    
  &lt;/div&gt;
&lt;/div&gt;


</description>
      <category>rust</category>
    </item>
  </channel>
</rss>
