Browse Source

A few more pointers to Rust

master
Julio Biason 6 years ago
parent
commit
f340f9647d
  1. 39
      porque-rust.html

39
porque-rust.html

@ -93,6 +93,19 @@
</section>
</section>
<section>
<section>
<h2>História</h2>
<ul>
<li>Criada em 2006 por Graydon Hoare.</li>
<li>Patrocinada pela Mozilla em 2009.</li>
<li>Versão 1.0 em 2015.</li>
<li>Versão atual: 1.34.1.</li>
</ul>
</section>
</section>
<section>
<section>
<p>
@ -711,11 +724,11 @@ OK(())
</section>
<section>
<h2>Structs</h2>
<section>
<h2>Structs</h2>
<pre><code class="hljs rust" data-trim>
struct Present {
struct Gift {
package_color: String,
content: String
}
@ -725,6 +738,14 @@ struct Present {
Structs em Rust são basicamente o mesmo que em C.
</aside>
</section>
<section>
<h2>Structs</h2>
<pre><code class="hljs rust" data-trim>
let presente = Gift { "red", "A GIFT!" };
</code></pre>
</section>
</section>
<section>
@ -931,6 +952,18 @@ fn call_isan(num: &amp;str) -&gt; Result&lt;Success, Error&gt; {
</section>
</section>
<section>
<h2>E agora?</h2>
<ul>
<li><a href="https://rustup.rs/">rustup</a></li>
<li><a href="https://doc.rust-lang.org/book/">The Rust Book</a></li>
<li><a href="https://doc.rust-lang.org/stable/rust-by-example/">Rust By Example</a></li>
<li><a href="https://play.rust-lang.org/?version=stable">Rust Playground</a></li>
<li><a href="https://t.me/rustlangbr">Rust Brasil (Telegram)</a></li>
</ul>
</section>
<section data-background='_images/thats-all-folks.jpg'>
<div class="semi-opaque">
<ul class="empty">

Loading…
Cancel
Save