|
|
|
@ -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> |
|
|
|
@ -710,12 +723,12 @@ OK(())
|
|
|
|
|
</section> |
|
|
|
|
</section> |
|
|
|
|
|
|
|
|
|
<section> |
|
|
|
|
<section> |
|
|
|
|
<h2>Structs</h2> |
|
|
|
|
|
|
|
|
|
<section> |
|
|
|
|
<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: &str) -> Result<Success, Error> {
|
|
|
|
|
</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"> |
|
|
|
|