<!DOCTYPE html>
<html itemscope itemtype="http://schema.org/QAPage">
<head>
<title>Highest Voted 'rust' Questions - Stack Overflow</title>
<link rel="shortcut icon" href="//cdn.sstatic.net/stackoverflow/img/favicon.ico?v=6cd6089ee7f6">
<link rel="apple-touch-icon image_src" href="//cdn.sstatic.net/stackoverflow/img/apple-touch-icon.png?v=41f6e13ade69">
<link rel="search" type="application/opensearchdescription+xml" title="Stack Overflow" href="/opensearch.xml">
<meta name="twitter:card" content="summary">
<meta name="twitter:domain" content="stackoverflow.com"/>
<meta property="og:type" content="website" />
<meta property="og:image" itemprop="image primaryImageOfPage" content="http://cdn.sstatic.net/stackoverflow/img/apple-touch-icon@2.png?v=ea71a5211a91&a" />
<meta name="twitter:title" property="og:title" itemprop="title name" content="Highest Voted &#39;rust&#39; Questions" />
<meta name="twitter:description" property="og:description" itemprop="description" content="Q&A for professional and enthusiast programmers" />
<meta property="og:url" content="http://stackoverflow.com/questions/tagged/rust?sort=votes&pageSize=50"/>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="//cdn.sstatic.net/Js/stub.en.js?v=413333d2cb4e"></script>
<link rel="stylesheet" type="text/css" href="//cdn.sstatic.net/stackoverflow/all.css?v=0b5ca56b8f06">
<link rel="alternate" type="application/atom+xml" title="highest voted rust questions feed" href="/feeds/tag?tagnames=rust&sort=votes" />
<script>
StackExchange.init({"locale":"en","stackAuthUrl":"https://stackauth.com","serverTime":1439213444,"networkMetaHostname":"meta.stackexchange.com","routeName":"Questions/ListByTag","styleCode":true,"enableUserHovercards":true,"snippets":{"enabled":true,"domain":"stacksnippets.net"},"site":{"name":"Stack Overflow","description":"Q&A for professional and enthusiast programmers","isNoticesTabEnabled":true,"recaptchaPublicKey":"6LdchgIAAAAAAJwGpIzRQSOFaO0pU6s44Xt8aTwc","recaptchaAudioLang":"en","enableNewTagCreationWarning":true,"insertSpaceAfterNameTabCompletion":false,"globalAuthDisabled":true,"nonAsciiTags":true,"enableSocialMediaInSharePopup":true},"user":{"fkey":"ed374b372dc7e2f1cf1e3c5212d4732d","isAnonymous":true}});
StackExchange.using.setCacheBreakers({"js/prettify-full.en.js":"0c289167cd82","js/moderator.en.js":"ddc6dce7f8a9","js/full-anon.en.js":"fc4b7ce1ed8a","js/full.en.js":"04cdc6a0ba3d","js/wmd.en.js":"d933a1503f7c","js/third-party/jquery.autocomplete.min.js":"e5f01e97f7c3","js/third-party/jquery.autocomplete.min.en.js":"","js/mobile.en.js":"1d9ca5139235","js/help.en.js":"b5f40fd81205","js/tageditor.en.js":"260ae44a356d","js/tageditornew.en.js":"044bbc92636e","js/inline-tag-editing.en.js":"9d7c6b9d01c1","js/revisions.en.js":"6aca57a6c709","js/review.en.js":"63a1d1f5f557","js/tagsuggestions.en.js":"d1ff9b84abe5","js/post-validation.en.js":"05049e5eae8a","js/explore-qlist.en.js":"9c64817b25fa","js/events.en.js":"ef9c91b0c49f","js/keyboard-shortcuts.en.js":"be13c7f674c0","js/external-editor.en.js":"d2e66d99e9b7","js/external-editor.en.js":"d2e66d99e9b7","js/snippet-javascript.en.js":"647d1c96b5a1","js/snippet-javascript-codemirror.en.js":"70db96c8807e"});
StackExchange.using("gps", function() {
StackExchange.gps.init(true);
});
</script>
<script>
StackExchange.ready(function () {
$('#nav-tour').click(function () {
StackExchange.using("gps", function() {
StackExchange.gps.track("aboutpage.click", { aboutclick_location: "headermain" }, true);
});
});
});
</script>
</head>
<body class="tagged-questions-page new-topbar">
<noscript><div id="noscript-padding"></div></noscript>
<div id="notify-container"></div>
<div id="overlay-header"></div>
<div id="custom-header"></div>
<div class="topbar">
<div class="topbar-wrapper">
<div class="js-topbar-dialog-corral">
<div class="topbar-dialog siteSwitcher-dialog dno">
<div class="header">
<h3><a href="//stackoverflow.com">current community</a></h3>
</div>
<div class="modal-content current-site-container">
<ul class="current-site">
<li>
<div class="related-links">
<a href="http://chat.stackoverflow.com" class="js-gps-track" data-gps-track="site_switcher.click({ item_type:6 })"
>chat</a>
<a href="http://blog.stackoverflow.com" class="js-gps-track" data-gps-track="site_switcher.click({ item_type:7 })"
>blog</a>
</div>
<a href="//stackoverflow.com"
class="current-site-link site-link js-gps-track"
data-id="1"
data-gps-track="
site_switcher.click({ item_type:3 })">
<div class="site-icon favicon favicon-stackoverflow" title="Stack Overflow"></div>
Stack Overflow
</a>
</li>
<li class="related-site">
<div class="L-shaped-icon-container">
<span class="L-shaped-icon"></span>
</div>
<a href="http://meta.stackoverflow.com"
class="site-link js-gps-track"
data-id="552"
data-gps-track="
site.switch({ target_site:552, item_type:3 }),
site_switcher.click({ item_type:4 })">
<div class="site-icon favicon favicon-stackoverflowmeta" title="Meta Stack Overflow"></div>
Meta Stack Overflow
</a>
</li>
<li class="related-site">
<div class="L-shaped-icon-container">
<span class="L-shaped-icon"></span>
</div>
<a class="site-link js-gps-track"
href="//careers.stackoverflow.com?utm_source=stackoverflow.com&utm_medium=site-ui&utm_campaign=multicollider"
data-gps-track="site_switcher.click({ item_type:9 })"
>
<div class="site-icon favicon favicon-careers" title="Stack Overflow Careers"></div>
Stack Overflow Careers
</a>
</li>
</ul>
</div>
<div class="header" id="your-communities-header">
<h3>
your communities </h3>
</div>
<div class="modal-content" id="your-communities-section">
<div class="call-to-login">
<a href="https://stackoverflow.com/users/signup?returnurl=http%3a%2f%2fstackoverflow.com%2fquestions%2ftagged%2frust%3fsort%3dvotes%26pagesize%3d50" class="login-link js-gps-track" data-gps-track="site_switcher.click({ item_type:10 })"
>Sign up</a> or <a href="https://stackoverflow.com/users/login?returnurl=http%3a%2f%2fstackoverflow.com%2fquestions%2ftagged%2frust%3fsort%3dvotes%26pagesize%3d50" class="login-link js-gps-track" data-gps-track="site_switcher.click({ item_type:11 })"
>log in</a> to customize your list.
</div>
</div>
<div class="header">
<h3><a href="//stackexchange.com/sites">more stack exchange communities</a></h3>
</div>
<div class="modal-content">
<div class="child-content"></div>
</div>
</div>
</div>
<div class="network-items">
<a href="//stackexchange.com"
class="topbar-icon icon-site-switcher yes-hover js-site-switcher-button js-gps-track"
data-gps-track="site_switcher.show"
title="A list of all 149 Stack Exchange sites">
<span class="hidden-text">Stack Exchange</span>
</a>
</div>
<div class="topbar-links">
<div class="links-container">
<span class="topbar-menu-links">
<a href="https://stackoverflow.com/users/signup?returnurl=http%3a%2f%2fstackoverflow.com%2fquestions%2ftagged%2frust%3fsort%3dvotes%26pagesize%3d50" class="login-link">sign up</a>
<a href="https://stackoverflow.com/users/login?returnurl=http%3a%2f%2fstackoverflow.com%2fquestions%2ftagged%2frust%3fsort%3dvotes%26pagesize%3d50" class="login-link">log in</a>
<a href="/tour">tour</a>
<a href="#" class="icon-help js-help-button" title="Help Center and other resources">
help
<span class="triangle"></span>
</a>
<div class="topbar-dialog help-dialog js-help-dialog dno">
<div class="modal-content">
<ul>
<li>
<a href="/tour" class="js-gps-track" data-gps-track="help_popup.click({ item_type:1 })">
Tour
<span class="item-summary">
Start here for a quick overview of the site
</span>
</a>
</li>
<li>
<a href="/help" class="js-gps-track" data-gps-track="help_popup.click({ item_type:4 })">
Help Center
<span class="item-summary">
Detailed answers to any questions you might have
</span>
</a>
</li>
<li>
<a href="//meta.stackoverflow.com" class="js-gps-track" data-gps-track="help_popup.click({ item_type:2 })">
Meta
<span class="item-summary">
Discuss the workings and policies of this site
</span>
</a>
</li>
</ul>
</div>
</div>
<a href="//careers.stackoverflow.com?utm_source=stackoverflow.com&utm_medium=site-ui&utm_campaign=anon-topbar">stack overflow careers</a>
</span>
</div>
<div class="search-container">
<form id="search" action="/search" method="get" autocomplete="off">
<input name="q" type="text" placeholder="search" value="[rust]" tabindex="1" autocomplete="off" maxlength="240" />
</form>
</div>
</div>
</div>
</div>
<script>
StackExchange.ready(function() { StackExchange.topbar.init(); });
</script>
<div class="container">
<div id="header">
<br class="cbt">
<div id="hlogo">
<a href="/" >
Stack Overflow
</a>
</div>
<div id="hmenus">
<div class="nav mainnavs">
<ul>
<li class="youarehere"><a id="nav-questions" href="/questions">Questions</a></li>
<li><a id="nav-tags" href="/tags">Tags</a></li>
<li><a id="nav-users" href="/users">Users</a></li>
<li><a id="nav-badges" href="/help/badges">Badges</a></li>
<li><a id="nav-unanswered" href="/unanswered">Unanswered</a></li>
</ul>
</div>
<div class="nav askquestion">
<ul>
<li>
<a id="nav-askquestion" href="/questions/ask">Ask Question</a>
</li>
</ul>
</div>
</div>
</div>
<div id="content" class="snippet-hidden">
<div id="mainbar">
<div class="subheader">
<h1>Tagged Questions</h1>
<div id="tabs">
<a href="/tags/rust/info" data-nav-xhref="" title="information about this tag" data-value="">info</a>
<a href="/questions/tagged/rust?sort=newest&pageSize=50" data-nav-xhref="" title="The most recently asked questions" data-value="newest">newest</a>
<a href="/questions/tagged/rust?sort=frequent&pageSize=50" data-nav-xhref="" title="Questions with the most links" data-value="frequent">frequent</a>
<a class="youarehere" href="/questions/tagged/rust?sort=votes&pageSize=50" data-nav-xhref="" title="Questions with the most votes" data-value="votes">votes</a>
<a href="/questions/tagged/rust?sort=active&pageSize=50" data-nav-xhref="" title="Questions that have recent activity" data-value="active">active</a>
<a href="/questions/tagged/rust?sort=unanswered&pageSize=50" data-nav-xhref="" title="Questions that have no upvoted answers" data-value="unanswered">unanswered</a>
</div>
</div>
<div class="question">
<script>
var ados = ados || {}; ados.run = ados.run || [];
ados.run.push(function () { ados_add_placement(22, 8277, "adzerk39955571", 56).setZone(739); });
</script>
<div class="everyonelovesstackoverflow" id="adzerk39955571">
</div>
<div class="welovestackoverflow" style="margin-top: 10px;">
<div style="float: left; position: relative; width: 100%">
<p>
Rust is a systems programming language focused on three goals: safety, speed, and concurrency. It maintains these goals without needing a garbage collector, making it a useful language for a number of use cases other languages aren't good at: embedding in other languages, programs with specific ... </p>
<p style="margin-bottom: 0;">
<a title="tag wiki" href="/tags/rust/info">learn more…</a>
<span class="lsep">|</span>
<a title="top answerers and askers in this tag" href="/tags/rust/topusers">top users</a>
<span class="lsep">|</span>
<a title="common, alternate spellings or phrasings for this tag" href="/tags/rust/synonyms">synonyms</a>
</p>
</div>
</div>
</div>
<div id="questions" class="content-padding">
<div class="question-summary" id="question-summary-9350125">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>67</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>8</strong>answers
</div>
</div>
<div class="views hot" title="23,076 views">
23k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/9350125/applications-and-libraries-written-in-rust" class="question-hyperlink">Applications and libraries written in Rust [closed]</a></h3>
<div class="excerpt">
Although Rust is still under heavy development, there should exist examples of applications and libraries at least partially written in Rust. Unfortunately I am unable to find such examples.
...
</div>
<div class="tags t-rust">
<a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2012-02-19 14:39:20Z" class="relativetime">Feb 19 '12 at 14:39</span>
</div>
<div class="user-gravatar32">
<a href="/users/811773/atom"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/e5fae5b35c0c625157d991b31e113de3?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/811773/atom">Atom</a><br>
<span class="reputation-score" title="reputation score 11026" dir="ltr">11k</span><span title="3 gold badges"><span class="badge1"></span><span class="badgecount">3</span></span><span title="41 silver badges"><span class="badge2"></span><span class="badgecount">41</span></span><span title="57 bronze badges"><span class="badge3"></span><span class="badgecount">57</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-15871885">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>52</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>6</strong>answers
</div>
</div>
<div class="views warm" title="9,523 views">
10k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/15871885/how-to-debug-rust-programs" class="question-hyperlink">How to debug Rust programs? [closed]</a></h3>
<div class="excerpt">
How can we debug Rust programs?
</div>
<div class="tags t-rust">
<a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2013-04-08 05:30:11Z" class="relativetime">Apr 8 '13 at 5:30</span>
</div>
<div class="user-gravatar32">
<a href="/users/40220/macropas"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/d9287234ee8436b5631a8ae3206c6121?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/40220/macropas">macropas</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">1,635</span><span title="12 silver badges"><span class="badge2"></span><span class="badgecount">12</span></span><span title="21 bronze badges"><span class="badge3"></span><span class="badgecount">21</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-15619320">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>51</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>9</strong>answers
</div>
</div>
<div class="views hot" title="10,433 views">
10k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/15619320/how-to-access-command-line-parameters" class="question-hyperlink">How to access command line parameters?</a></h3>
<div class="excerpt">
The rust tutorial does not explain how to take parameters from the command line. fn main() is only shown with an empty parameter list in all examples.
So what is the correct way of accessing command ...
</div>
<div class="tags t-rust">
<a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2013-03-25 15:59:30Z" class="relativetime">Mar 25 '13 at 15:59</span>
</div>
<div class="user-gravatar32">
<a href="/users/871423/shutefan"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/734ebe218ba5ca723c10d783390bc736?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/871423/shutefan">shutefan</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">660</span><span title="3 gold badges"><span class="badge1"></span><span class="badgecount">3</span></span><span title="9 silver badges"><span class="badge2"></span><span class="badgecount">9</span></span><span title="15 bronze badges"><span class="badge3"></span><span class="badgecount">15</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-31609137">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>48</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>6</strong>answers
</div>
</div>
<div class="views warm" title="3,915 views">
4k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/31609137/why-are-explicit-lifetimes-needed-in-rust" class="question-hyperlink">Why are explicit lifetimes needed in Rust?</a></h3>
<div class="excerpt">
I was reading the lifetimes chapter of the Rust book, and I came across this example for a named/explicit lifetime:
struct Foo<'a> {
x: &'a i32,
}
fn main() {
let x; ...
</div>
<div class="tags t-pointers t-rust t-static-analysis t-lifetime">
<a href="/questions/tagged/pointers" class="post-tag" title="show questions tagged 'pointers'" rel="tag">pointers</a> <a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a> <a href="/questions/tagged/static-analysis" class="post-tag" title="show questions tagged 'static-analysis'" rel="tag">static-analysis</a> <a href="/questions/tagged/lifetime" class="post-tag" title="show questions tagged 'lifetime'" rel="tag">lifetime</a>
</div>
<div class="started fr">
<div class="user-info user-hover">
<div class="user-action-time">
asked <span title="2015-07-24 11:15:06Z" class="relativetime">Jul 24 at 11:15</span>
</div>
<div class="user-gravatar32">
<a href="/users/924313/jco"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/14d86d9d0a97d8464d59eb42935838ae?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/924313/jco">jco</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">5,400</span><span title="11 gold badges"><span class="badge1"></span><span class="badgecount">11</span></span><span title="45 silver badges"><span class="badge2"></span><span class="badgecount">45</span></span><span title="114 bronze badges"><span class="badge3"></span><span class="badgecount">114</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-28123453">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>46</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered">
<strong>1</strong>answer
</div>
</div>
<div class="views warm" title="1,169 views">
1k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/28123453/what-is-the-difference-between-traits-in-rust-and-typeclasses-in-haskell" class="question-hyperlink">What is the difference between traits in Rust and typeclasses in Haskell?</a></h3>
<div class="excerpt">
Traits in Rust seem at least superficially similar to typeclasses in Haskell, however I've seen people write that there are some differences between them. I was wondering exactly what these ...
</div>
<div class="tags t-haskell t-rust">
<a href="/questions/tagged/haskell" class="post-tag" title="show questions tagged 'haskell'" rel="tag">haskell</a> <a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2015-01-24 07:50:44Z" class="relativetime">Jan 24 at 7:50</span>
</div>
<div class="user-gravatar32">
<a href="/users/2553416/logicchains"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/3cb1756924bd03cc01d107852dd81acf?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/2553416/logicchains">LogicChains</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">719</span><span title="3 silver badges"><span class="badge2"></span><span class="badgecount">3</span></span><span title="13 bronze badges"><span class="badge3"></span><span class="badgecount">13</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-24158114">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>44</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>2</strong>answers
</div>
</div>
<div class="views warm" title="4,301 views">
4k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/24158114/rust-string-versus-str" class="question-hyperlink">Rust String versus str</a></h3>
<div class="excerpt">
I've been awhile from Rust and a new wild type String appeared. So I'm wondering what are the differences? When does one use String instead of str and vice versa? Is one of them getting deprecated?
</div>
<div class="tags t-string t-rust">
<a href="/questions/tagged/string" class="post-tag" title="show questions tagged 'string'" rel="tag">string</a> <a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2014-06-11 08:29:34Z" class="relativetime">Jun 11 '14 at 8:29</span>
</div>
<div class="user-gravatar32">
<a href="/users/220485/daniel-fath"><div class="gravatar-wrapper-32"><img src="http://i.stack.imgur.com/bTrsL.jpg?s=32&g=1" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/220485/daniel-fath">Daniel Fath</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">2,507</span><span title="1 gold badge"><span class="badge1"></span><span class="badgecount">1</span></span><span title="17 silver badges"><span class="badge2"></span><span class="badgecount">17</span></span><span title="42 bronze badges"><span class="badge3"></span><span class="badgecount">42</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-28519997">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>40</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>1</strong>answer
</div>
</div>
<div class="views warm" title="2,019 views">
2k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/28519997/what-are-rusts-exact-auto-dereferencing-rules" class="question-hyperlink">What are Rust's exact auto-dereferencing rules?</a></h3>
<div class="excerpt">
I'm learning/experimenting with Rust, and in all the elegance that I find in this language, there is one peculiarity that baffles me and seems totally out of place.
Rust automatically dereferences ...
</div>
<div class="tags t-pointers t-reference t-rust t-dereference t-formal-semantics">
<a href="/questions/tagged/pointers" class="post-tag" title="show questions tagged 'pointers'" rel="tag">pointers</a> <a href="/questions/tagged/reference" class="post-tag" title="show questions tagged 'reference'" rel="tag">reference</a> <a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a> <a href="/questions/tagged/dereference" class="post-tag" title="show questions tagged 'dereference'" rel="tag">dereference</a> <a href="/questions/tagged/formal-semantics" class="post-tag" title="show questions tagged 'formal-semantics'" rel="tag">formal-semantics</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2015-02-14 20:31:55Z" class="relativetime">Feb 14 at 20:31</span>
</div>
<div class="user-gravatar32">
<a href="/users/403742/kfyatek"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/a75da0019ec1c94350b0c334d2269823?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/403742/kfyatek">kFYatek</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">278</span><span title="2 silver badges"><span class="badge2"></span><span class="badgecount">2</span></span><span title="8 bronze badges"><span class="badge3"></span><span class="badgecount">8</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-3210025">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>36</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>3</strong>answers
</div>
</div>
<div class="views warm" title="4,389 views">
4k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/3210025/what-is-typestate" class="question-hyperlink">What is typestate?</a></h3>
<div class="excerpt">
What does TypeState refer to in respect to language design? I saw it mentioned in some discussions regarding a new language by mozilla called Rust.
</div>
<div class="tags t-rust t-language-design t-rust-obsolete">
<a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a> <a href="/questions/tagged/language-design" class="post-tag" title="show questions tagged 'language-design'" rel="tag">language-design</a> <a href="/questions/tagged/rust-obsolete" class="post-tag" title="show questions tagged 'rust-obsolete'" rel="tag">rust-obsolete</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2010-07-09 05:22:09Z" class="relativetime">Jul 9 '10 at 5:22</span>
</div>
<div class="user-gravatar32">
<a href="/users/42323/brad-the-app-guy"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/c0a2efb82fa44007b2f46b8c14e0723e?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/42323/brad-the-app-guy">Brad The App Guy</a><br>
<span class="reputation-score" title="reputation score 14314" dir="ltr">14.3k</span><span title="2 gold badges"><span class="badge1"></span><span class="badgecount">2</span></span><span title="29 silver badges"><span class="badge2"></span><span class="badgecount">29</span></span><span title="54 bronze badges"><span class="badge3"></span><span class="badgecount">54</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-24253344">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>34</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>2</strong>answers
</div>
</div>
<div class="views warm" title="6,138 views">
6k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/24253344/move-vs-copy-in-rust" class="question-hyperlink">Move vs Copy in Rust</a></h3>
<div class="excerpt">
Let's say I have this struct
struct Triplet {
one: int,
two: int,
three: int,
}
If I pass this to a function it is implicitly copied. Now sometimes I read that some values are not ...
</div>
<div class="tags t-rust">
<a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info user-hover">
<div class="user-action-time">
asked <span title="2014-06-16 22:47:05Z" class="relativetime">Jun 16 '14 at 22:47</span>
</div>
<div class="user-gravatar32">
<a href="/users/288703/christoph"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/1bb69b75c5e73a7c9f4ebbc4835d622f?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/288703/christoph">Christoph</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">6,309</span><span title="5 gold badges"><span class="badge1"></span><span class="badgecount">5</span></span><span title="37 silver badges"><span class="badge2"></span><span class="badgecount">37</span></span><span title="70 bronze badges"><span class="badge3"></span><span class="badgecount">70</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-20921988">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>33</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered">
<strong>1</strong>answer
</div>
</div>
<div class="views warm" title="1,432 views">
1k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/20921988/running-boehm-gc-in-multiple-threads-independently" class="question-hyperlink">Running Boehm GC in multiple threads independently</a></h3>
<div class="excerpt">
I'm experimenting with writing some bindings to the Boehm GC for Rust.
Some background: Rust is designed to be a high-concurrent language, and a result of this design is having the ability to ...
</div>
<div class="tags t-c t-multithreading t-garbage-collection t-rust t-boehm-gc">
<a href="/questions/tagged/c" class="post-tag" title="show questions tagged 'c'" rel="tag">c</a> <a href="/questions/tagged/multithreading" class="post-tag" title="show questions tagged 'multithreading'" rel="tag">multithreading</a> <a href="/questions/tagged/garbage-collection" class="post-tag" title="show questions tagged 'garbage-collection'" rel="tag">garbage-collection</a> <a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a> <a href="/questions/tagged/boehm-gc" class="post-tag" title="show questions tagged 'boehm-gc'" rel="tag">boehm-gc</a>
</div>
<div class="started fr">
<div class="user-info user-hover">
<div class="user-action-time">
asked <span title="2014-01-04 14:06:33Z" class="relativetime">Jan 4 '14 at 14:06</span>
</div>
<div class="user-gravatar32">
<a href="/users/1256624/huon-dbaupp"><div class="gravatar-wrapper-32"><img src="http://i.stack.imgur.com/EdJaa.jpg?s=32&g=1" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/1256624/huon-dbaupp">huon-dbaupp</a><br>
<span class="reputation-score" title="reputation score 31109" dir="ltr">31.1k</span><span title="3 gold badges"><span class="badge1"></span><span class="badgecount">3</span></span><span title="58 silver badges"><span class="badge2"></span><span class="badgecount">58</span></span><span title="103 bronze badges"><span class="badge3"></span><span class="badgecount">103</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-17696798">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>32</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>7</strong>answers
</div>
</div>
<div class="views hot" title="13,754 views">
14k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/17696798/rust-web-frameworks" class="question-hyperlink">Rust Web Frameworks [closed]</a></h3>
<div class="excerpt">
The goal of Rust is to be a good language for the creation of large client and server programs that run over the Internet. Rust description on wikipedia
I was looking for web frameworks for rust, ...
</div>
<div class="tags t-webserver t-web-frameworks t-rust">
<a href="/questions/tagged/webserver" class="post-tag" title="show questions tagged 'webserver'" rel="tag">webserver</a> <a href="/questions/tagged/web-frameworks" class="post-tag" title="show questions tagged 'web-frameworks'" rel="tag">web-frameworks</a> <a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info user-hover">
<div class="user-action-time">
asked <span title="2013-07-17 10:01:43Z" class="relativetime">Jul 17 '13 at 10:01</span>
</div>
<div class="user-gravatar32">
<a href="/users/656804/nikolay-fominyh"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/b4a805577a0117e80254f3cc530a1769?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/656804/nikolay-fominyh">Nikolay Fominyh</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">3,544</span><span title="2 gold badges"><span class="badge1"></span><span class="badgecount">2</span></span><span title="24 silver badges"><span class="badge2"></span><span class="badgecount">24</span></span><span title="63 bronze badges"><span class="badge3"></span><span class="badgecount">63</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-21747136">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>25</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered">
<strong>3</strong>answers
</div>
</div>
<div class="views warm" title="4,688 views">
5k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/21747136/how-do-i-print-the-type-of-a-variable-in-rust" class="question-hyperlink">How do I print the type of a variable in Rust?</a></h3>
<div class="excerpt">
I have this code snippet:
let mut my_number=32.90;
I need to know the type of my_number. Using type and type_of did not work; is there any other way I can print the number's type?
</div>
<div class="tags t-rust">
<a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2014-02-13 06:49:09Z" class="relativetime">Feb 13 '14 at 6:49</span>
</div>
<div class="user-gravatar32">
<a href="/users/2431012/user2431012"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/e0dfc86677992fe505804698d7618d1b?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/2431012/user2431012">user2431012</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">129</span><span title="2 silver badges"><span class="badge2"></span><span class="badgecount">2</span></span><span title="6 bronze badges"><span class="badge3"></span><span class="badgecount">6</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-25106554">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>24</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>3</strong>answers
</div>
</div>
<div class="views warm" title="1,994 views">
2k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/25106554/println-doesnt-work-in-rust-unit-tests" class="question-hyperlink">println! doesn't work in rust unit tests?</a></h3>
<div class="excerpt">
I'm using rust 0.11 and implemented the following method and unit test:
fn read_file(path: &Path) {
/*
let mut file = BufferedReader::new(File::open(path));
for line ...
</div>
<div class="tags t-rust t-println">
<a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a> <a href="/questions/tagged/println" class="post-tag" title="show questions tagged 'println'" rel="tag">println</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2014-08-03 16:10:50Z" class="relativetime">Aug 3 '14 at 16:10</span>
</div>
<div class="user-gravatar32">
<a href="/users/70600/ruipacheco"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/6123be50f7a10302e7bf59dcdc5e2623?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/70600/ruipacheco">ruipacheco</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">1,402</span><span title="2 gold badges"><span class="badge1"></span><span class="badgecount">2</span></span><span title="20 silver badges"><span class="badge2"></span><span class="badgecount">20</span></span><span title="45 bronze badges"><span class="badge3"></span><span class="badgecount">45</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-16504643">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>23</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>2</strong>answers
</div>
</div>
<div class="views warm" title="2,499 views">
2k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/16504643/what-is-the-overhead-of-rusts-option-type" class="question-hyperlink">What is the overhead of Rust's Option type?</a></h3>
<div class="excerpt">
In Rust, pointers can never be null, so in case where you actually need null, such as a linked list, you use the Option type:
struct element {
value: int,
next: Option<~element>,
}
...
</div>
<div class="tags t-performance t-rust t-null-pointer">
<a href="/questions/tagged/performance" class="post-tag" title="show questions tagged 'performance'" rel="tag">performance</a> <a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a> <a href="/questions/tagged/null-pointer" class="post-tag" title="show questions tagged 'null-pointer'" rel="tag">null-pointer</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2013-05-12 05:59:23Z" class="relativetime">May 12 '13 at 5:59</span>
</div>
<div class="user-gravatar32">
<a href="/users/14955/thilo"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/9e4bd5fb6ac1cdc931bac60216a7aaf2?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/14955/thilo">Thilo</a><br>
<span class="reputation-score" title="reputation score 132082" dir="ltr">132k</span><span title="46 gold badges"><span class="badge1"></span><span class="badgecount">46</span></span><span title="278 silver badges"><span class="badge2"></span><span class="badgecount">278</span></span><span title="420 bronze badges"><span class="badge3"></span><span class="badgecount">420</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-22243527">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>22</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>1</strong>answer
</div>
</div>
<div class="views warm" title="4,569 views">
5k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/22243527/how-do-you-implement-a-custom-fmtdebug-trait-in-rust" class="question-hyperlink">How do you implement a custom 'fmt::Debug' trait in rust?</a></h3>
<div class="excerpt">
I presume you do something like this:
use uuid::Uuid;
use std::fmt::Formatter;
use std::fmt::Debug;
#[deriving(Debug)]
struct BlahLF {
id: Uuid
}
impl BlahLF {
fn new() -> ~BlahLF {
...
</div>
<div class="tags t-rust">
<a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2014-03-07 06:52:44Z" class="relativetime">Mar 7 '14 at 6:52</span>
</div>
<div class="user-gravatar32">
<a href="/users/353820/doug"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/32b29e1dc23c2c5abe0283ab7b9541d3?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/353820/doug">Doug</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">4,278</span><span title="3 gold badges"><span class="badge1"></span><span class="badgecount">3</span></span><span title="31 silver badges"><span class="badge2"></span><span class="badgecount">31</span></span><span title="61 bronze badges"><span class="badge3"></span><span class="badgecount">61</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-21257686">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>21</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>2</strong>answers
</div>
</div>
<div class="views warm" title="5,580 views">
6k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/21257686/what-is-this-unwrap-thing-sometimes-its-unwrap-sometimes-unwrap-or" class="question-hyperlink">What is this unwrap thing: sometimes it's unwrap sometimes unwrap_or</a></h3>
<div class="excerpt">
Google doesn't returns any good results.
I've encountered it reading http://www.rustforrubyists.com/book/book.html i.e.
let mut reader = BufferedReader::new(io::stdin());
let input = ...
</div>
<div class="tags t-rust">
<a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2014-01-21 12:06:08Z" class="relativetime">Jan 21 '14 at 12:06</span>
</div>
<div class="user-gravatar32">
<a href="/users/588759/rofrol"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/216ea4da5cae7be4030b6242ab90631c?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/588759/rofrol">rofrol</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">790</span><span title="8 silver badges"><span class="badge2"></span><span class="badgecount">8</span></span><span title="16 bronze badges"><span class="badge3"></span><span class="badgecount">16</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-17490716">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>21</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>1</strong>answer
</div>
</div>
<div class="views warm" title="4,525 views">
5k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/17490716/lifetimes-in-rust" class="question-hyperlink">Lifetimes in Rust</a></h3>
<div class="excerpt">
Occasionally I've found myself wanting to write functions that can be called in either of two ways:
// With a string literal:
let lines = read_file_lines("data.txt");
// With a string pointer:
let ...
</div>
<div class="tags t-rust">
<a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2013-07-05 14:00:43Z" class="relativetime">Jul 5 '13 at 14:00</span>
</div>
<div class="user-gravatar32">
<a href="/users/259747/daniel"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/47073ed4b1e112a835879701dc706fad?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/259747/daniel">Daniel</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">4,946</span><span title="1 gold badge"><span class="badge1"></span><span class="badgecount">1</span></span><span title="19 silver badges"><span class="badge2"></span><span class="badgecount">19</span></span><span title="51 bronze badges"><span class="badge3"></span><span class="badgecount">51</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-14189604">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>19</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>2</strong>answers
</div>
</div>
<div class="views warm" title="1,615 views">
2k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/14189604/what-is-monomorphisation-with-context-to-c" class="question-hyperlink">What is monomorphisation with context to C++?</a></h3>
<div class="excerpt">
Dave Herman's recent talk in Rust said that they borrowed this property from C++. I couldn't find anything around the topic. Can somebody please explain what monomorphisation means?
</div>
<div class="tags t-cçç t-rust">
<a href="/questions/tagged/c%2b%2b" class="post-tag" title="show questions tagged 'c++'" rel="tag">c++</a> <a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2013-01-07 03:47:12Z" class="relativetime">Jan 7 '13 at 3:47</span>
</div>
<div class="user-gravatar32">
<a href="/users/82368/unj2"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/954ea2f3eddf44343abc116897ce47c3?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/82368/unj2">unj2</a><br>
<span class="reputation-score" title="reputation score 11407" dir="ltr">11.4k</span><span title="42 gold badges"><span class="badge1"></span><span class="badgecount">42</span></span><span title="153 silver badges"><span class="badge2"></span><span class="badgecount">153</span></span><span title="286 bronze badges"><span class="badge3"></span><span class="badgecount">286</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-15379408">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>17</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>3</strong>answers
</div>
</div>
<div class="views warm" title="2,933 views">
3k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/15379408/how-do-i-transform-str-to-str-in-rust" class="question-hyperlink">How do I transform &str to ~str in Rust?</a></h3>
<div class="excerpt">
This is for the current 0.6 Rust trunk by the way, not sure the exact commit.
Let's say I want to for each over some strings, and my closure takes a borrowed string pointer argument (&str). I ...
</div>
<div class="tags t-string t-pointers t-rust">
<a href="/questions/tagged/string" class="post-tag" title="show questions tagged 'string'" rel="tag">string</a> <a href="/questions/tagged/pointers" class="post-tag" title="show questions tagged 'pointers'" rel="tag">pointers</a> <a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2013-03-13 07:35:23Z" class="relativetime">Mar 13 '13 at 7:35</span>
</div>
<div class="user-gravatar32">
<a href="/users/122396/ross"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/12076a394d741582947a3fba59e09202?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/122396/ross">Ross</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">683</span><span title="7 silver badges"><span class="badge2"></span><span class="badgecount">7</span></span><span title="17 bronze badges"><span class="badge3"></span><span class="badgecount">17</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-13579266">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>16</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>5</strong>answers
</div>
</div>
<div class="views warm" title="8,550 views">
9k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/13579266/how-to-read-user-input-in-rust" class="question-hyperlink">How to Read User Input in Rust?</a></h3>
<div class="excerpt">
I'm wondering how to read user input in Rust.
I intend to make a tokenizer, so first thing I need is to read every single line the user types and stops reading once the user presses <ctrl-D>
I ...
</div>
<div class="tags t-input t-io t-rust">
<a href="/questions/tagged/input" class="post-tag" title="show questions tagged 'input'" rel="tag">input</a> <a href="/questions/tagged/io" class="post-tag" title="show questions tagged 'io'" rel="tag">io</a> <a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info user-hover">
<div class="user-action-time">
asked <span title="2012-11-27 07:23:23Z" class="relativetime">Nov 27 '12 at 7:23</span>
</div>
<div class="user-gravatar32">
<a href="/users/690061/beyondsora"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/2aa0c6735cd7fd6285a009556e8f764f?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/690061/beyondsora">BeyondSora</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">1,250</span><span title="10 silver badges"><span class="badge2"></span><span class="badgecount">10</span></span><span title="21 bronze badges"><span class="badge3"></span><span class="badgecount">21</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-14154753">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>16</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>3</strong>answers
</div>
</div>
<div class="views warm" title="4,726 views">
5k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/14154753/how-do-i-make-an-http-request-from-rust" class="question-hyperlink">How do I make an HTTP request from Rust?</a></h3>
<div class="excerpt">
How can I make an HTTP request from Rust? I can't seem to find anything in the core library.
I don't need to parse the output, just make a request and check the HTTP response code.
Bonus marks if ...
</div>
<div class="tags t-http t-rust">
<a href="/questions/tagged/http" class="post-tag" title="show questions tagged 'http'" rel="tag">http</a> <a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info user-hover">
<div class="user-action-time">
asked <span title="2013-01-04 09:50:32Z" class="relativetime">Jan 4 '13 at 9:50</span>
</div>
<div class="user-gravatar32">
<a href="/users/255627/alex-dean"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/9653cf0f270b28e4cbf9fc6019521677?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/255627/alex-dean">Alex Dean</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">5,382</span><span title="3 gold badges"><span class="badge1"></span><span class="badgecount">3</span></span><span title="38 silver badges"><span class="badge2"></span><span class="badgecount">38</span></span><span title="60 bronze badges"><span class="badge3"></span><span class="badgecount">60</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-23781124">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>16</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>1</strong>answer
</div>
</div>
<div class="views warm" title="1,895 views">
2k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/23781124/can-rust-library-be-used-from-another-languages-in-a-way-c-libraries-do" class="question-hyperlink">Can rust library be used from another languages in a way c libraries do?</a></h3>
<div class="excerpt">
Writing such library will I have to sacrifice std? How, for example, will do I write python bindings to rust library, if possible?
</div>
<div class="tags t-dll t-rust t-shared-libraries">
<a href="/questions/tagged/dll" class="post-tag" title="show questions tagged 'dll'" rel="tag">dll</a> <a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a> <a href="/questions/tagged/shared-libraries" class="post-tag" title="show questions tagged 'shared-libraries'" rel="tag">shared-libraries</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2014-05-21 10:52:39Z" class="relativetime">May 21 '14 at 10:52</span>
</div>
<div class="user-gravatar32">
<a href="/users/1215031/moonwalker"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/6ae3697b2cf910eb587338b46daf7856?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/1215031/moonwalker">Moonwalker</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">530</span><span title="9 silver badges"><span class="badge2"></span><span class="badgecount">9</span></span><span title="28 bronze badges"><span class="badge3"></span><span class="badgecount">28</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-4419433">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>16</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>3</strong>answers
</div>
</div>
<div class="views warm" title="4,642 views">
5k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/4419433/any-one-tried-mozillas-programming-language-rust-yet" class="question-hyperlink">any one tried Mozilla's programming language Rust Yet? [closed]</a></h3>
<div class="excerpt">
Mozilla is designing a new programming language called Rust , has anyone give it a try?
what makes it different from other programming languages like C#
if someone gave it a try tell us what you ...
</div>
<div class="tags t-programming-languages t-mozilla t-rust">
<a href="/questions/tagged/programming-languages" class="post-tag" title="show questions tagged 'programming-languages'" rel="tag">programming-languages</a> <a href="/questions/tagged/mozilla" class="post-tag" title="show questions tagged 'mozilla'" rel="tag">mozilla</a> <a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info user-hover">
<div class="user-action-time">
asked <span title="2010-12-11 22:57:05Z" class="relativetime">Dec 11 '10 at 22:57</span>
</div>
<div class="user-gravatar32">
<a href="/users/536448/saif-al-harthi"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/181371ee6935873b6b822a85303db5b9?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/536448/saif-al-harthi">Saif al Harthi</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">2,254</span><span title="1 gold badge"><span class="badge1"></span><span class="badgecount">1</span></span><span title="10 silver badges"><span class="badge2"></span><span class="badgecount">10</span></span><span title="20 bronze badges"><span class="badge3"></span><span class="badgecount">20</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-18374612">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>16</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>2</strong>answers
</div>
</div>
<div class="views warm" title="4,713 views">
5k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/18374612/does-will-rust-support-functional-programming-idioms" class="question-hyperlink">Does/Will Rust support functional programming idioms?</a></h3>
<div class="excerpt">
As Rust gets fleshed out more and more, my interest in it begins to pique.
I love the fact that it supports algebraic data types and in particular matching of those,
but are there any thoughts made on ...
</div>
<div class="tags t-functional-programming t-rust">
<a href="/questions/tagged/functional-programming" class="post-tag" title="show questions tagged 'functional-programming'" rel="tag">functional-programming</a> <a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2013-08-22 07:52:10Z" class="relativetime">Aug 22 '13 at 7:52</span>
</div>
<div class="user-gravatar32">
<a href="/users/388010/sebastian"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/f6c6f0feb5cb53e7023d5d9ecc443767?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/388010/sebastian">Sebastian</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">580</span><span title="7 silver badges"><span class="badge2"></span><span class="badgecount">7</span></span><span title="20 bronze badges"><span class="badge3"></span><span class="badgecount">20</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-26212397">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>15</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>2</strong>answers
</div>
</div>
<div class="views warm" title="1,972 views">
2k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/26212397/references-to-traits-in-structs" class="question-hyperlink">References to traits in structs</a></h3>
<div class="excerpt">
Lets say I have a trait Foo
pub trait Foo {
fn do_something(&self) -> f64;
}
and a struct which references that trait
pub struct Bar {
foo : Foo,
}
Trying to compile I get
error: ...
</div>
<div class="tags t-rust">
<a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2014-10-06 08:25:47Z" class="relativetime">Oct 6 '14 at 8:25</span>
</div>
<div class="user-gravatar32">
<a href="/users/825320/neil-danson"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/eed628ac0ac2c3b640b098fc4af7af5c?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/825320/neil-danson">neil danson</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">282</span><span title="1 silver badge"><span class="badge2"></span><span class="badgecount">1</span></span><span title="9 bronze badges"><span class="badge3"></span><span class="badgecount">9</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-9271970">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>15</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>5</strong>answers
</div>
</div>
<div class="views warm" title="8,579 views">
9k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/9271970/how-do-you-make-a-range-in-rust" class="question-hyperlink">How do you make a range in Rust?</a></h3>
<div class="excerpt">
The docs don't say how, and the tutorial completely ignores for loops.
</div>
<div class="tags t-loops t-for-loop t-range t-rust">
<a href="/questions/tagged/loops" class="post-tag" title="show questions tagged 'loops'" rel="tag">loops</a> <a href="/questions/tagged/for-loop" class="post-tag" title="show questions tagged 'for-loop'" rel="tag">for-loop</a> <a href="/questions/tagged/range" class="post-tag" title="show questions tagged 'range'" rel="tag">range</a> <a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info user-hover">
<div class="user-action-time">
asked <span title="2012-02-14 05:03:32Z" class="relativetime">Feb 14 '12 at 5:03</span>
</div>
<div class="user-gravatar32">
<a href="/users/350106/mcandre"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/dfe88469b75efc87cbcbbbc2a975850a?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/350106/mcandre">mcandre</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">7,990</span><span title="4 gold badges"><span class="badge1"></span><span class="badgecount">4</span></span><span title="36 silver badges"><span class="badge2"></span><span class="badgecount">36</span></span><span title="75 bronze badges"><span class="badge3"></span><span class="badgecount">75</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-30467085">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>15</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>2</strong>answers
</div>
</div>
<div class="views " title="236 views">
236 views
</div>
</div>
<div class="summary">
<h3><a href="/questions/30467085/how-to-iterate-over-an-array" class="question-hyperlink">How to Iterate Over an Array?</a></h3>
<div class="excerpt">
I'm new to Rust and I'm trying to write a program that involves filtering and folding over arrays. I've been using TRPL as a reference, but I don't understand what happens when I form iterators over ...
</div>
<div class="tags t-rust">
<a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2015-05-26 19:19:12Z" class="relativetime">May 26 at 19:19</span>
</div>
<div class="user-gravatar32">
<a href="/users/3834754/willengler"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/c8749cd6261f1c0b80d0afba519cdd2b?s=32&d=identicon&r=PG&f=1" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/3834754/willengler">WillEngler</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">85</span><span title="1 silver badge"><span class="badge2"></span><span class="badgecount">1</span></span><span title="5 bronze badges"><span class="badge3"></span><span class="badgecount">5</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-27999559">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>15</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>1</strong>answer
</div>
</div>
<div class="views " title="307 views">
307 views
</div>
</div>
<div class="summary">
<h3><a href="/questions/27999559/can-libraries-be-distributed-as-a-binary-so-the-end-user-cannot-see-the-source" class="question-hyperlink">Can libraries be distributed as a binary, so the end user cannot see the source code?</a></h3>
<div class="excerpt">
Is it possible to compile a Rust library crate so that the user can't see the source code but can still use the library?
If it is, are all the generics provided as "Source code" or some IR, or does ...
</div>
<div class="tags t-rust">
<a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2015-01-17 12:41:02Z" class="relativetime">Jan 17 at 12:41</span>
</div>
<div class="user-gravatar32">
<a href="/users/506962/j-v"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/72d17716d70c471dead0bd8c6c8e15f8?s=32&d=identicon&r=PG&f=1" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/506962/j-v">J V</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">3,463</span><span title="1 gold badge"><span class="badge1"></span><span class="badgecount">1</span></span><span title="15 silver badges"><span class="badge2"></span><span class="badgecount">15</span></span><span title="27 bronze badges"><span class="badge3"></span><span class="badgecount">27</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-19650265">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>15</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>1</strong>answer
</div>
</div>
<div class="views warm" title="3,466 views">
3k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/19650265/using-rust-is-there-a-faster-shorter-way-to-initialize-variables-in-a-struct" class="question-hyperlink">Using Rust, is there a faster/shorter way to initialize variables in a struct?</a></h3>
<div class="excerpt">
In the following example, I would much prefer to assign a value to each field in the struct in the declaration of the fields. Alternatively, it effectively takes one additional statement for each ...
</div>
<div class="tags t-rust">
<a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2013-10-29 05:21:31Z" class="relativetime">Oct 29 '13 at 5:21</span>
</div>
<div class="user-gravatar32">
<a href="/users/1949390/brian-oh"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/64cd775c51fc47067f0d133544385691?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/1949390/brian-oh">Brian Oh</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">983</span><span title="11 silver badges"><span class="badge2"></span><span class="badgecount">11</span></span><span title="23 bronze badges"><span class="badge3"></span><span class="badgecount">23</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-30757914">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>15</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>1</strong>answer
</div>
</div>
<div class="views " title="137 views">
137 views
</div>
</div>
<div class="summary">
<h3><a href="/questions/30757914/can-i-mark-a-function-as-deprecated" class="question-hyperlink">Can I mark a function as deprecated?</a></h3>
<div class="excerpt">
I'd like to mark functions/methods as deprecated. I tried to apply the deprecated attribute:
#[deprecated]
fn old_way_of_doing_it() {
but this yields an error:
error: stability attributes may ...
</div>
<div class="tags t-rust">
<a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info user-hover">
<div class="user-action-time">
asked <span title="2015-06-10 13:32:40Z" class="relativetime">Jun 10 at 13:32</span>
</div>
<div class="user-gravatar32">
<a href="/users/2556117/fraser"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/cde5c1d8e38358013a16a3f7a686ae87?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/2556117/fraser">Fraser</a><br>
<span class="reputation-score" title="reputation score 27100" dir="ltr">27.1k</span><span title="5 gold badges"><span class="badge1"></span><span class="badgecount">5</span></span><span title="63 silver badges"><span class="badge2"></span><span class="badgecount">63</span></span><span title="93 bronze badges"><span class="badge3"></span><span class="badgecount">93</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-24145823">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>14</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>1</strong>answer
</div>
</div>
<div class="views warm" title="2,343 views">
2k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/24145823/rust-ffi-c-string-handling" class="question-hyperlink">Rust FFI C string handling</a></h3>
<div class="excerpt">
I'm playing around a bit with the Rust FFI, and now I'm trying to get a C string returned by a C library, and convert it to a Rust string.
My code:
mylib.c
const char* hello(){
return "Hello ...
</div>
<div class="tags t-c t-ffi t-rust">
<a href="/questions/tagged/c" class="post-tag" title="show questions tagged 'c'" rel="tag">c</a> <a href="/questions/tagged/ffi" class="post-tag" title="show questions tagged 'ffi'" rel="tag">ffi</a> <a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2014-06-10 16:07:45Z" class="relativetime">Jun 10 '14 at 16:07</span>
</div>
<div class="user-gravatar32">
<a href="/users/1833511/dirk"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/ab0c9cc3bb28498a3e83e5862ab2f5b4?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/1833511/dirk">Dirk</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">465</span><span title="6 silver badges"><span class="badge2"></span><span class="badgecount">6</span></span><span title="17 bronze badges"><span class="badge3"></span><span class="badgecount">17</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-19076719">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>14</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>1</strong>answer
</div>
</div>
<div class="views warm" title="7,650 views">
8k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/19076719/how-do-i-convert-a-vector-of-bytes-u8-to-a-string-in-rust" class="question-hyperlink">How do I convert a Vector of bytes (u8) to a string in Rust?</a></h3>
<div class="excerpt">
I am trying to write simple TCP/IP client in Rust and I need to print out my buffer I got from the server. How do I convert the u8 vector to a String for printing?
</div>
<div class="tags t-string t-vector t-rust">
<a href="/questions/tagged/string" class="post-tag" title="show questions tagged 'string'" rel="tag">string</a> <a href="/questions/tagged/vector" class="post-tag" title="show questions tagged 'vector'" rel="tag">vector</a> <a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2013-09-29 10:03:36Z" class="relativetime">Sep 29 '13 at 10:03</span>
</div>
<div class="user-gravatar32">
<a href="/users/677701/athabaska-dick"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/6b9ae7c8cce61ad4d5de0b3fb2c9145b?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/677701/athabaska-dick">Athabaska Dick</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">994</span><span title="8 silver badges"><span class="badge2"></span><span class="badgecount">8</span></span><span title="16 bronze badges"><span class="badge3"></span><span class="badgecount">16</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-30984688">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>14</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>1</strong>answer
</div>
</div>
<div class="views " title="193 views">
193 views
</div>
</div>
<div class="summary">
<h3><a href="/questions/30984688/convert-rust-vector-of-tuples-to-a-c-compatible-structure" class="question-hyperlink">Convert Rust vector of tuples to a C compatible structure</a></h3>
<div class="excerpt">
Following these answers, I've currently defined a Rust 1.0 function as follows, in order to be callable from Python using ctypes:
use std::vec;
extern crate libc;
use libc::{c_int, c_float, size_t};
...
</div>
<div class="tags t-python t-rust t-ctypes">
<a href="/questions/tagged/python" class="post-tag" title="show questions tagged 'python'" rel="tag">python</a> <a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a> <a href="/questions/tagged/ctypes" class="post-tag" title="show questions tagged 'ctypes'" rel="tag">ctypes</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2015-06-22 16:03:57Z" class="relativetime">Jun 22 at 16:03</span>
</div>
<div class="user-gravatar32">
<a href="/users/416626/urschrei"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/ad98b7aa615718b4a2446d12af86be73?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/416626/urschrei">urschrei</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">6,222</span><span title="4 gold badges"><span class="badge1"></span><span class="badgecount">4</span></span><span title="16 silver badges"><span class="badge2"></span><span class="badgecount">16</span></span><span title="36 bronze badges"><span class="badge3"></span><span class="badgecount">36</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-19605132">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>14</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered">
<strong>2</strong>answers
</div>
</div>
<div class="views warm" title="5,792 views">
6k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/19605132/is-it-possible-to-use-global-variables-in-rust" class="question-hyperlink">Is it possible to use global-variables in Rust?</a></h3>
<div class="excerpt">
I know that in-general global-variables are to be avoided. Nevertheless, I think in a practical sense, it is sometimes desirable (in situations where the variable is integral to the program) to use ...
</div>
<div class="tags t-global-variables t-rust">
<a href="/questions/tagged/global-variables" class="post-tag" title="show questions tagged 'global-variables'" rel="tag">global-variables</a> <a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2013-10-26 09:39:45Z" class="relativetime">Oct 26 '13 at 9:39</span>
</div>
<div class="user-gravatar32">
<a href="/users/1949390/brian-oh"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/64cd775c51fc47067f0d133544385691?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/1949390/brian-oh">Brian Oh</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">983</span><span title="11 silver badges"><span class="badge2"></span><span class="badgecount">11</span></span><span title="23 bronze badges"><span class="badge3"></span><span class="badgecount">23</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-22596920">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>13</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>3</strong>answers
</div>
</div>
<div class="views warm" title="4,064 views">
4k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/22596920/split-a-module-across-several-files" class="question-hyperlink">Split a module across several files</a></h3>
<div class="excerpt">
I want to have a module with multiple structs in it, each in its own file. Using a Math module as an example:
Math/
Vector.rs
Matrix.rs
Complex.rs
I want each struct to be in the same module, ...
</div>
<div class="tags t-module t-rust">
<a href="/questions/tagged/module" class="post-tag" title="show questions tagged 'module'" rel="tag">module</a> <a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2014-03-23 20:53:07Z" class="relativetime">Mar 23 '14 at 20:53</span>
</div>
<div class="user-gravatar32">
<a href="/users/1938727/epicpineapple"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/adcb26992bdfcaef0657df6e08f2bc92?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/1938727/epicpineapple">EpicPineapple</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">442</span><span title="6 silver badges"><span class="badge2"></span><span class="badgecount">6</span></span><span title="22 bronze badges"><span class="badge3"></span><span class="badgecount">22</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-19450145">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>13</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>3</strong>answers
</div>
</div>
<div class="views " title="819 views">
819 views
</div>
</div>
<div class="summary">
<h3><a href="/questions/19450145/split-stacks-unneccesary-on-amd64" class="question-hyperlink">Split stacks unneccesary on amd64</a></h3>
<div class="excerpt">
There seems to be an opinion out there that using a "split stack" runtime model is unnecessary on 64-bit architectures. I say seems to be, because I haven't seen anyone actually say that, only dance ...
</div>
<div class="tags t-multithreading t-go t-64bit t-callstack t-rust">
<a href="/questions/tagged/multithreading" class="post-tag" title="show questions tagged 'multithreading'" rel="tag">multithreading</a> <a href="/questions/tagged/go" class="post-tag" title="show questions tagged 'go'" rel="tag"><img src="//i.stack.imgur.com/sawHl.png" height="16" width="18" alt="" class="sponsor-tag-img">go</a> <a href="/questions/tagged/64bit" class="post-tag" title="show questions tagged '64bit'" rel="tag">64bit</a> <a href="/questions/tagged/callstack" class="post-tag" title="show questions tagged 'callstack'" rel="tag">callstack</a> <a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2013-10-18 12:50:52Z" class="relativetime">Oct 18 '13 at 12:50</span>
</div>
<div class="user-gravatar32">
<a href="/users/1520878/brooks94"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/6822b07182b8c0ae366325f2ae4fab4f?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/1520878/brooks94">brooks94</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">642</span><span title="7 silver badges"><span class="badge2"></span><span class="badgecount">7</span></span><span title="26 bronze badges"><span class="badge3"></span><span class="badgecount">26</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-20922091">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>13</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>3</strong>answers
</div>
</div>
<div class="views warm" title="4,348 views">
4k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/20922091/how-do-you-use-parent-module-imports-in-rust" class="question-hyperlink">How do you use parent module imports in rust?</a></h3>
<div class="excerpt">
Hm, this is covered in the rust tutorial, but I can't actually make it work.
If you have a directory structure like this:
src/main.rs
src/module1/blah.rs
src/module1/blah2.rs
src/utils/logging.rs
...
</div>
<div class="tags t-rust">
<a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2014-01-04 14:17:15Z" class="relativetime">Jan 4 '14 at 14:17</span>
</div>
<div class="user-gravatar32">
<a href="/users/353820/doug"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/32b29e1dc23c2c5abe0283ab7b9541d3?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/353820/doug">Doug</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">4,278</span><span title="3 gold badges"><span class="badge1"></span><span class="badgecount">3</span></span><span title="31 silver badges"><span class="badge2"></span><span class="badgecount">31</span></span><span title="61 bronze badges"><span class="badge3"></span><span class="badgecount">61</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-26469715">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>13</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>2</strong>answers
</div>
</div>
<div class="views " title="183 views">
183 views
</div>
</div>
<div class="summary">
<h3><a href="/questions/26469715/writing-a-rust-unit-test-that-passes-on-panic" class="question-hyperlink">Writing a Rust unit test that passes on panic?</a></h3>
<div class="excerpt">
Suppose that a function in rust panics under some condition (through the panic() macro). I wish to write a test case to validate whether the function is panicing or not under those conditions. I ...
</div>
<div class="tags t-unit-testing t-rust">
<a href="/questions/tagged/unit-testing" class="post-tag" title="show questions tagged 'unit-testing'" rel="tag">unit-testing</a> <a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info user-hover">
<div class="user-action-time">
asked <span title="2014-10-20 15:46:32Z" class="relativetime">Oct 20 '14 at 15:46</span>
</div>
<div class="user-gravatar32">
<a href="/users/208890/shailesh-kumar"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/349049eabb58b8a26443b3775b5dae52?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/208890/shailesh-kumar">Shailesh Kumar</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">2,894</span><span title="1 gold badge"><span class="badge1"></span><span class="badgecount">1</span></span><span title="14 silver badges"><span class="badge2"></span><span class="badgecount">14</span></span><span title="39 bronze badges"><span class="badge3"></span><span class="badgecount">39</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-17054978">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>13</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>3</strong>answers
</div>
</div>
<div class="views warm" title="1,279 views">
1k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/17054978/composition-operator-and-pipe-forward-operator-in-rust" class="question-hyperlink">Composition operator and pipe forward operator in Rust</a></h3>
<div class="excerpt">
Do both the composition and pipe forward operators (like in other languages) exist in Rust? If so, what do they look like and one should one be preferred to the other? If one does not exist, why is ...
</div>
<div class="tags t-rust">
<a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2013-06-11 22:34:31Z" class="relativetime">Jun 11 '13 at 22:34</span>
</div>
<div class="user-gravatar32">
<a href="/users/1298196/phlox-midas"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/69e43b7e3c97b3a41852e8defdd5da45?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/1298196/phlox-midas">Phlox Midas</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">659</span><span title="6 silver badges"><span class="badge2"></span><span class="badgecount">6</span></span><span title="20 bronze badges"><span class="badge3"></span><span class="badgecount">20</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-30698561">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>13</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>1</strong>answer
</div>
</div>
<div class="views " title="127 views">
127 views
</div>
</div>
<div class="summary">
<h3><a href="/questions/30698561/no-error-for-two-traits-implementing-the-same-method" class="question-hyperlink">No error for two traits implementing the same method</a></h3>
<div class="excerpt">
According to the docs, Rust should complain if I try to call a method provided by two different traits like this:
trait Foo {
fn f(&self);
}
trait Bar {
fn f(&self);
}
struct Baz;
...
</div>
<div class="tags t-rust t-mio">
<a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a> <a href="/questions/tagged/mio" class="post-tag" title="show questions tagged 'mio'" rel="tag">mio</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2015-06-07 21:21:27Z" class="relativetime">Jun 7 at 21:21</span>
</div>
<div class="user-gravatar32">
<a href="/users/1870481/michas"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/478e3c60bf48e069b2f79bddd202d600?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/1870481/michas">michas</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">8,802</span><span title="1 gold badge"><span class="badge1"></span><span class="badgecount">1</span></span><span title="21 silver badges"><span class="badge2"></span><span class="badgecount">21</span></span><span title="57 bronze badges"><span class="badge3"></span><span class="badgecount">57</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-30272751">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>13</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>1</strong>answer
</div>
</div>
<div class="views " title="351 views">
351 views
</div>
</div>
<div class="summary">
<h3><a href="/questions/30272751/generating-strings-and-identifying-substrings-is-very-slow" class="question-hyperlink">Generating strings and identifying substrings is very slow</a></h3>
<div class="excerpt">
I'd like to benchmark certain operations in Rust, but I seem to be having some trouble:
fn main(){
let needle = (0..100).map(|_| "b").collect::<String>();
let haystack = ...
</div>
<div class="tags t-string t-substring t-rust">
<a href="/questions/tagged/string" class="post-tag" title="show questions tagged 'string'" rel="tag">string</a> <a href="/questions/tagged/substring" class="post-tag" title="show questions tagged 'substring'" rel="tag">substring</a> <a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2015-05-16 06:57:02Z" class="relativetime">May 16 at 6:57</span>
</div>
<div class="user-gravatar32">
<a href="/users/1889337/tasos-laskos"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/1cf962e3407c13a8f3caa30ba8c1ed80?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/1889337/tasos-laskos">Tasos Laskos</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">110</span><span title="6 bronze badges"><span class="badge3"></span><span class="badgecount">6</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-26192564">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>13</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered">
<strong>3</strong>answers
</div>
</div>
<div class="views " title="852 views">
852 views
</div>
</div>
<div class="summary">
<h3><a href="/questions/26192564/rust-struct-can-borrow-a-mut-self-twice-so-why-cant-a-trait" class="question-hyperlink">Rust struct can borrow “&'a mut self” twice, so why can't a trait?</a></h3>
<div class="excerpt">
The following Rust code compiles successfully:
struct StructNothing<'a>;
impl<'a> StructNothing<'a> {
fn nothing(&'a mut self) -> () {}
fn twice_nothing(&'a ...
</div>
<div class="tags t-iterator t-rust t-lifetime">
<a href="/questions/tagged/iterator" class="post-tag" title="show questions tagged 'iterator'" rel="tag">iterator</a> <a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a> <a href="/questions/tagged/lifetime" class="post-tag" title="show questions tagged 'lifetime'" rel="tag">lifetime</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2014-10-04 11:55:51Z" class="relativetime">Oct 4 '14 at 11:55</span>
</div>
<div class="user-gravatar32">
<a href="/users/12089/emk"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/c80aa0608c845cd64585e9fc9ca4cc67?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/12089/emk">emk</a><br>
<span class="reputation-score" title="reputation score 33061" dir="ltr">33.1k</span><span title="3 gold badges"><span class="badge1"></span><span class="badgecount">3</span></span><span title="27 silver badges"><span class="badge2"></span><span class="badgecount">27</span></span><span title="42 bronze badges"><span class="badge3"></span><span class="badgecount">42</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-16818588">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>13</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered">
<strong>1</strong>answer
</div>
</div>
<div class="views warm" title="1,190 views">
1k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/16818588/how-to-handle-blocking-i-o-in-rust-or-long-running-external-function-calls-in-g" class="question-hyperlink">How to handle blocking i/o in Rust, or long running external function calls in general</a></h3>
<div class="excerpt">
I need to read data provided by an external process via a posix filedescriptor in my Rust program. The fd connection is kept up a very long time (hours) and the other side passes data to me from time ...
</div>
<div class="tags t-io t-task t-ffi t-rust">
<a href="/questions/tagged/io" class="post-tag" title="show questions tagged 'io'" rel="tag">io</a> <a href="/questions/tagged/task" class="post-tag" title="show questions tagged 'task'" rel="tag">task</a> <a href="/questions/tagged/ffi" class="post-tag" title="show questions tagged 'ffi'" rel="tag">ffi</a> <a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info user-hover">
<div class="user-action-time">
asked <span title="2013-05-29 15:53:06Z" class="relativetime">May 29 '13 at 15:53</span>
</div>
<div class="user-gravatar32">
<a href="/users/44014/zargony"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/a1ac7908dc7ba59d1d73494b1dd39920?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/44014/zargony">Zargony</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">4,899</span><span title="1 gold badge"><span class="badge1"></span><span class="badgecount">1</span></span><span title="25 silver badges"><span class="badge2"></span><span class="badgecount">25</span></span><span title="38 bronze badges"><span class="badge3"></span><span class="badgecount">38</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-25959075">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>12</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>2</strong>answers
</div>
</div>
<div class="views warm" title="2,401 views">
2k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/25959075/why-explicit-lifetime-bound-required-for-boxt-in-struct" class="question-hyperlink">Why “explicit lifetime bound required” for Box<T> in struct?</a></h3>
<div class="excerpt">
I'm trying to compile this rust code:
trait A {
fn f(&self);
}
struct S {
a : Box<A>
}
and I'm getting this error:
a.rs:6:13: 6:14 error: explicit lifetime bound required
a.rs:6 ...
</div>
<div class="tags t-rust">
<a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2014-09-21 12:16:05Z" class="relativetime">Sep 21 '14 at 12:16</span>
</div>
<div class="user-gravatar32">
<a href="/users/3994266/eugene-zemtsov"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/e7f84b29e7bdff6b1748d47e049710ab?s=32&d=identicon&r=PG&f=1" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/3994266/eugene-zemtsov">Eugene Zemtsov</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">75</span><span title="5 bronze badges"><span class="badge3"></span><span class="badgecount">5</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-23975391">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>12</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>2</strong>answers
</div>
</div>
<div class="views warm" title="2,498 views">
2k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/23975391/how-to-convert-string-into-static-str" class="question-hyperlink">How to convert String into &'static str</a></h3>
<div class="excerpt">
I wonder how do I convert a String (formerly StrBuf) into a &str. More specifically, I would like to convert it into a str with a static lifetime (&'static str)
</div>
<div class="tags t-rust">
<a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info user-hover">
<div class="user-action-time">
asked <span title="2014-05-31 23:30:45Z" class="relativetime">May 31 '14 at 23:30</span>
</div>
<div class="user-gravatar32">
<a href="/users/288703/christoph"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/1bb69b75c5e73a7c9f4ebbc4835d622f?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/288703/christoph">Christoph</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">6,309</span><span title="5 gold badges"><span class="badge1"></span><span class="badgecount">5</span></span><span title="37 silver badges"><span class="badge2"></span><span class="badgecount">37</span></span><span title="70 bronze badges"><span class="badge3"></span><span class="badgecount">70</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-15836096">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>12</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>2</strong>answers
</div>
</div>
<div class="views " title="934 views">
934 views
</div>
</div>
<div class="summary">
<h3><a href="/questions/15836096/in-rust-what-is-the-idiomatic-equivalent-of-haskells-n-m" class="question-hyperlink">In rust, what is the idiomatic equivalent of Haskell's [n..m]?</a></h3>
<div class="excerpt">
How do I produce a list containing all the integers in Rust ? I'm looking for the equivalent of Haskell's [n..m] or python's range(n, m+1) but can't find anything.
I'm aware of the int::range ...
</div>
<div class="tags t-rust">
<a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2013-04-05 14:08:56Z" class="relativetime">Apr 5 '13 at 14:08</span>
</div>
<div class="user-gravatar32">
<a href="/users/87584/fabien"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/9f6dfb6c18bce2c8487312b77c32dbc3?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/87584/fabien">Fabien</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">2,385</span><span title="1 gold badge"><span class="badge1"></span><span class="badgecount">1</span></span><span title="13 silver badges"><span class="badge2"></span><span class="badgecount">13</span></span><span title="36 bronze badges"><span class="badge3"></span><span class="badgecount">36</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-30450399">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>12</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>1</strong>answer
</div>
</div>
<div class="views " title="98 views">
98 views
</div>
</div>
<div class="summary">
<h3><a href="/questions/30450399/does-println-borrow-or-own-the-variable" class="question-hyperlink">Does println! borrow or own the variable?</a></h3>
<div class="excerpt">
I am learning Rust right now and am confused with borrowing and ownership. In the Rust documentation about reference and borrowing
let mut x = 5;
{
let y = &mut x;
*y += 1;
}
...
</div>
<div class="tags t-rust t-ownership">
<a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a> <a href="/questions/tagged/ownership" class="post-tag" title="show questions tagged 'ownership'" rel="tag">ownership</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2015-05-26 05:48:49Z" class="relativetime">May 26 at 5:48</span>
</div>
<div class="user-gravatar32">
<a href="/users/3800474/kevinyu"><div class="gravatar-wrapper-32"><img src="http://graph.facebook.com/1326889668/picture?type=large" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/3800474/kevinyu">kevinyu</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">97</span><span title="6 bronze badges"><span class="badge3"></span><span class="badgecount">6</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-27872753">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>12</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>1</strong>answer
</div>
</div>
<div class="views warm" title="2,525 views">
3k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/27872753/what-is-warnunstable-about-in-rust" class="question-hyperlink">What is #[warn(unstable)] about in Rust?</a></h3>
<div class="excerpt">
I have a really simple cat function written in the Rust 1.0 alpha.
use std::io;
fn main(){
let mut reader = io::stdin();
loop {
let input = reader.read_line().ok().expect("Failed to ...
</div>
<div class="tags t-io t-rust">
<a href="/questions/tagged/io" class="post-tag" title="show questions tagged 'io'" rel="tag">io</a> <a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2015-01-10 04:05:16Z" class="relativetime">Jan 10 at 4:05</span>
</div>
<div class="user-gravatar32">
<a href="/users/1924257/wegry"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/31d8a68147c1d5a6b07b9c0743903ea2?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/1924257/wegry">wegry</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">468</span><span title="5 silver badges"><span class="badge2"></span><span class="badgecount">5</span></span><span title="18 bronze badges"><span class="badge3"></span><span class="badgecount">18</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-27904864">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>12</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>1</strong>answer
</div>
</div>
<div class="views warm" title="1,165 views">
1k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/27904864/what-does-cannot-move-out-of-indexed-content-mean" class="question-hyperlink">What does “cannot move out of indexed content” mean?</a></h3>
<div class="excerpt">
I am playing with Rust, and I'm trying to access the first command line argument with this code:
use std::os;
fn main() {
let dir = os::args()[1];
println!("Hello, world!");
}
And I get ...
</div>
<div class="tags t-rust">
<a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info ">
<div class="user-action-time">
asked <span title="2015-01-12 14:59:29Z" class="relativetime">Jan 12 at 14:59</span>
</div>
<div class="user-gravatar32">
<a href="/users/161922/rory"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/16e12e337f6edc3750681492656097ed?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/161922/rory">Rory</a><br>
<span class="reputation-score" title="reputation score 10986" dir="ltr">11k</span><span title="28 gold badges"><span class="badge1"></span><span class="badgecount">28</span></span><span title="110 silver badges"><span class="badge2"></span><span class="badgecount">110</span></span><span title="172 bronze badges"><span class="badge3"></span><span class="badgecount">172</span></span>
</div>
</div>
</div>
</div>
</div><div class="question-summary" id="question-summary-21011330">
<div class="statscontainer">
<div class="statsarrow"></div>
<div class="stats">
<div class="vote">
<div class="votes">
<span class="vote-count-post "><strong>11</strong></span>
<div class="viewcount">votes</div>
</div>
</div>
<div class="status answered-accepted">
<strong>2</strong>answers
</div>
</div>
<div class="views warm" title="2,446 views">
2k views
</div>
</div>
<div class="summary">
<h3><a href="/questions/21011330/in-rust-how-do-i-invoke-a-system-command-and-capture-its-output" class="question-hyperlink">In Rust, how do I invoke a system command and capture its output?</a></h3>
<div class="excerpt">
Is there a way to invoke a system command, like ls or fuser in Rust? How about capturing its output?
</div>
<div class="tags t-rust">
<a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
</div>
<div class="started fr">
<div class="user-info user-hover">
<div class="user-action-time">
asked <span title="2014-01-09 03:55:46Z" class="relativetime">Jan 9 '14 at 3:55</span>
</div>
<div class="user-gravatar32">
<a href="/users/871012/quux00"><div class="gravatar-wrapper-32"><img src="https://www.gravatar.com/avatar/dcc24a9085a147962bb2ddac10da2082?s=32&d=identicon&r=PG" alt="" width="32" height="32"></div></a>
</div>
<div class="user-details">
<a href="/users/871012/quux00">quux00</a><br>
<span class="reputation-score" title="reputation score " dir="ltr">3,465</span><span title="1 gold badge"><span class="badge1"></span><span class="badgecount">1</span></span><span title="20 silver badges"><span class="badge2"></span><span class="badgecount">20</span></span><span title="45 bronze badges"><span class="badge3"></span><span class="badgecount">45</span></span>
</div>
</div>
</div>
</div>
</div>
</div>
<br class="cbt" />
<div class="pager fl">
<span class="page-numbers current">1</span> <a href="/questions/tagged/rust?page=2&sort=votes" title="go to page 2"> <span class="page-numbers">2</span> </a>
<a href="/questions/tagged/rust?page=3&sort=votes" title="go to page 3"> <span class="page-numbers">3</span> </a>
<a href="/questions/tagged/rust?page=4&sort=votes" title="go to page 4"> <span class="page-numbers">4</span> </a>
<a href="/questions/tagged/rust?page=5&sort=votes" title="go to page 5"> <span class="page-numbers">5</span> </a>
<span class="page-numbers dots">…</span> <a href="/questions/tagged/rust?page=56&sort=votes" title="go to page 56"> <span class="page-numbers">56</span> </a>
<a href="/questions/tagged/rust?page=2&sort=votes" rel="next" title="go to page 2"> <span class="page-numbers next"> next</span> </a>
</div>
<div id="feed-link">
<div id="feed-link-text">
<a href="/feeds/tag?tagnames=rust&sort=votes" title="the 30 highest voted rust questions">
<span class="feed-icon"></span>highest voted rust questions feed
</a>
</div>
</div>
</div>
<div id="sidebar">
<div class="module">
<div class="summarycount al">2,758</div>
<p>questions tagged</p>
<div class="tagged">
<a href="/questions/tagged/rust" class="post-tag" title="show questions tagged 'rust'" rel="tag">rust</a>
<a style="margin-left: 10px;" title="tag wiki, stats and faq" href="/tags/rust/info">about »</a>
</div>
</div>
<script>
var ados = ados || {}; ados.run = ados.run || [];
ados.run.push(function () { ados_add_placement(22,8277,"adzerk332956176",[17,2221]).setZone(45); });
</script>
<div class="everyonelovesstackoverflow" id="adzerk332956176">
</div>
<div id="hireme">
<script>
;(function(n){var o=20,b="#sidebar [id^='adzerk'].everyonelovesstackoverflow",s="div#hireme,div.hireme",r=setTimeout,f=clearTimeout,t=null,h=!1,e=null,u,c=n.adurl,k=n.azw,d=n.azt,l=Array.prototype,a=l.map,g=l.forEach,v=function(){return(new Date).getTime()},nt=v(),i=function(n){return document.querySelectorAll(n)},tt=function(n){var t={},r=window.StackExchange,e=decodeURIComponent,u,f;return n.length>1&&n.substr(1).split("&").forEach(function(n){var t=n.split("=");this[e(t[0])]=e(t[1])},t),f=t.ac||t.accountid||r&&r.options&&r.options.user&&r.options.user.accountId,f&&(t.ac=f),t.tags||(u=a.call(i(".post-taglist .post-tag"),function(n){return n.innerText}),u.length>0&&(t.tags=u.join(";"))),n==="#large"&&(t.l=1),n==="#abort"&&(t.abort=1),t},y=function(n){return typeof n=="string"&&(n=i(n)),n.length!==0&&n[0].innerHTML.replace(/\s+/g,"").length>0},p=function(n,r){if(!h){h=!0;var l=i(s),y=document,p=encodeURIComponent,w,o,b,e,u;f(t);l.length>0&&((n.l||i("#careersadsdoublehigh").length>0)&&(n.l=1),u=a.call(l,function(n){return"d="+n.id}).join("&"),w=["l","ip","ac","eng","prov","tags","theme","remote","seed"],o=Object.keys(n).filter(function(n){return w.indexOf(n)!==-1}).map(function(t){return p(t)+"="+p(n[t])}).join("&"),o&&(u+="&"+o),r&&(u+="&azt=true"),b=v()-nt,u+="&lw="+b,e=y.createElement("script"),e.type="text/javascript",e.src=c+(c.indexOf("?")===-1?"?":"&")+u,y.body.appendChild(e),window.calculonPlacerStart=(new Date).getTime())}},it=function(n){y(n)||(g.call(i(n),function(n){n.parentNode.removeChild(n)}),t&&f(t))},w=function(n){y(b)?(e&&f(e),p(n)):t=r(w,o,n)};(u=tt(location.hash),u.abort)||(k&&(e=r(p,d,u,!0)),t=r(w,o,u),r(it,2e3,s))}).apply(null, [{"azw":false,"azt":2000,"adurl":"//clc.stackoverflow.com/j/p"}]) </script>
</div>
<div class="module js-gps-related-tags">
<h4 id="h-related-tags">Related Tags</h4>
<div>
<a href="/questions/tagged/lifetime" class="post-tag no-tag-menu" title="show questions tagged 'lifetime'" rel="tag">lifetime</a> <span class="item-multiplier"><span class="item-multiplier-x">×</span> <span class="item-multiplier-count">165</span></span>
</div>
<div>
<a href="/questions/tagged/traits" class="post-tag no-tag-menu" title="show questions tagged 'traits'" rel="tag">traits</a> <span class="item-multiplier"><span class="item-multiplier-x">×</span> <span class="item-multiplier-count">83</span></span>
</div>
<div>
<a href="/questions/tagged/rust-cargo" class="post-tag no-tag-menu" title="show questions tagged 'rust-cargo'" rel="tag">rust-cargo</a> <span class="item-multiplier"><span class="item-multiplier-x">×</span> <span class="item-multiplier-count">79</span></span>
</div>
<div>
<a href="/questions/tagged/string" class="post-tag no-tag-menu" title="show questions tagged 'string'" rel="tag">string</a> <span class="item-multiplier"><span class="item-multiplier-x">×</span> <span class="item-multiplier-count">76</span></span>
</div>
<div>
<a href="/questions/tagged/ffi" class="post-tag no-tag-menu" title="show questions tagged 'ffi'" rel="tag">ffi</a> <span class="item-multiplier"><span class="item-multiplier-x">×</span> <span class="item-multiplier-count">62</span></span>
</div>
<div>
<a href="/questions/tagged/iterator" class="post-tag no-tag-menu" title="show questions tagged 'iterator'" rel="tag">iterator</a> <span class="item-multiplier"><span class="item-multiplier-x">×</span> <span class="item-multiplier-count">58</span></span>
</div>
<div>
<a href="/questions/tagged/multithreading" class="post-tag no-tag-menu" title="show questions tagged 'multithreading'" rel="tag">multithreading</a> <span class="item-multiplier"><span class="item-multiplier-x">×</span> <span class="item-multiplier-count">50</span></span>
</div>
<div>
<a href="/questions/tagged/generics" class="post-tag no-tag-menu" title="show questions tagged 'generics'" rel="tag">generics</a> <span class="item-multiplier"><span class="item-multiplier-x">×</span> <span class="item-multiplier-count">50</span></span>
</div>
<div>
<a href="/questions/tagged/arrays" class="post-tag no-tag-menu" title="show questions tagged 'arrays'" rel="tag">arrays</a> <span class="item-multiplier"><span class="item-multiplier-x">×</span> <span class="item-multiplier-count">49</span></span>
</div>
<div>
<a href="/questions/tagged/borrow-checker" class="post-tag no-tag-menu" title="show questions tagged 'borrow-checker'" rel="tag">borrow-checker</a> <span class="item-multiplier"><span class="item-multiplier-x">×</span> <span class="item-multiplier-count">47</span></span>
</div>
<div class="dno js-hidden">
<a href="/questions/tagged/closures" class="post-tag no-tag-menu" title="show questions tagged 'closures'" rel="tag">closures</a> <span class="item-multiplier"><span class="item-multiplier-x">×</span> <span class="item-multiplier-count">46</span></span>
</div>
<div class="dno js-hidden">
<a href="/questions/tagged/pointers" class="post-tag no-tag-menu" title="show questions tagged 'pointers'" rel="tag">pointers</a> <span class="item-multiplier"><span class="item-multiplier-x">×</span> <span class="item-multiplier-count">45</span></span>
</div>
<div class="dno js-hidden">
<a href="/questions/tagged/vector" class="post-tag no-tag-menu" title="show questions tagged 'vector'" rel="tag">vector</a> <span class="item-multiplier"><span class="item-multiplier-x">×</span> <span class="item-multiplier-count">42</span></span>
</div>
<div class="dno js-hidden">
<a href="/questions/tagged/c" class="post-tag no-tag-menu" title="show questions tagged 'c'" rel="tag">c</a> <span class="item-multiplier"><span class="item-multiplier-x">×</span> <span class="item-multiplier-count">37</span></span>
</div>
<div class="dno js-hidden">
<a href="/questions/tagged/struct" class="post-tag no-tag-menu" title="show questions tagged 'struct'" rel="tag">struct</a> <span class="item-multiplier"><span class="item-multiplier-x">×</span> <span class="item-multiplier-count">33</span></span>
</div>
<div class="dno js-hidden">
<a href="/questions/tagged/macros" class="post-tag no-tag-menu" title="show questions tagged 'macros'" rel="tag">macros</a> <span class="item-multiplier"><span class="item-multiplier-x">×</span> <span class="item-multiplier-count">33</span></span>
</div>
<div class="dno js-hidden">
<a href="/questions/tagged/enums" class="post-tag no-tag-menu" title="show questions tagged 'enums'" rel="tag">enums</a> <span class="item-multiplier"><span class="item-multiplier-x">×</span> <span class="item-multiplier-count">27</span></span>
</div>
<div class="dno js-hidden">
<a href="/questions/tagged/trait" class="post-tag no-tag-menu" title="show questions tagged 'trait'" rel="tag">trait</a> <span class="item-multiplier"><span class="item-multiplier-x">×</span> <span class="item-multiplier-count">27</span></span>
</div>
<div class="dno js-hidden">
<a href="/questions/tagged/reference" class="post-tag no-tag-menu" title="show questions tagged 'reference'" rel="tag">reference</a> <span class="item-multiplier"><span class="item-multiplier-x">×</span> <span class="item-multiplier-count">26</span></span>
</div>
<div class="dno js-hidden">
<a href="/questions/tagged/types" class="post-tag no-tag-menu" title="show questions tagged 'types'" rel="tag">types</a> <span class="item-multiplier"><span class="item-multiplier-x">×</span> <span class="item-multiplier-count">25</span></span>
</div>
<div class="dno js-hidden">
<a href="/questions/tagged/pattern-matching" class="post-tag no-tag-menu" title="show questions tagged 'pattern-matching'" rel="tag">pattern-matching</a> <span class="item-multiplier"><span class="item-multiplier-x">×</span> <span class="item-multiplier-count">24</span></span>
</div>
<div class="dno js-hidden">
<a href="/questions/tagged/json" class="post-tag no-tag-menu" title="show questions tagged 'json'" rel="tag">json</a> <span class="item-multiplier"><span class="item-multiplier-x">×</span> <span class="item-multiplier-count">22</span></span>
</div>
<div class="dno js-hidden">
<a href="/questions/tagged/windows" class="post-tag no-tag-menu" title="show questions tagged 'windows'" rel="tag">windows</a> <span class="item-multiplier"><span class="item-multiplier-x">×</span> <span class="item-multiplier-count">20</span></span>
</div>
<div class="dno js-hidden">
<a href="/questions/tagged/io" class="post-tag no-tag-menu" title="show questions tagged 'io'" rel="tag">io</a> <span class="item-multiplier"><span class="item-multiplier-x">×</span> <span class="item-multiplier-count">17</span></span>
</div>
<div class="dno js-hidden">
<a href="/questions/tagged/ownership" class="post-tag no-tag-menu" title="show questions tagged 'ownership'" rel="tag">ownership</a> <span class="item-multiplier"><span class="item-multiplier-x">×</span> <span class="item-multiplier-count">16</span></span>
</div>
<a href="#"
class="show-more js-show-more js-gps-track"
data-gps-track="related_tags.click({ item_type:2 })">
more related tags
</a>
<script>
StackExchange.ready(function () {
var $div = $('#h-related-tags').parent();
$div.find('.js-show-more').click(function () {
$div.find('.js-hidden').show();
$(this).remove();
return false;
});
});
</script>
</div>
<div id="hot-network-questions" class="module">
<h4>
<a href="//stackexchange.com/questions?tab=hot"
class="js-gps-track"
data-gps-track="posts_hot_network.click({ item_type:1, location:9 })">
Hot Network Questions
</a>
</h4>
<ul>
<li >
<div class="favicon favicon-academia" title="Academia Stack Exchange"></div><a href="http://academia.stackexchange.com/questions/51206/is-it-ethical-legal-to-use-the-universitys-resources-for-a-personal-project" class="js-gps-track" data-gps-track="site.switch({ item_type:9, target_site:415 }); posts_hot_network.click({ item_type:2, location:9 })">
Is it ethical/legal to use the University's resources for a personal project?
</a>
</li>
<li >
<div class="favicon favicon-english" title="English Language & Usage Stack Exchange"></div><a href="http://english.stackexchange.com/questions/265959/is-warrioress-a-real-word" class="js-gps-track" data-gps-track="site.switch({ item_type:9, target_site:97 }); posts_hot_network.click({ item_type:2, location:9 })">
Is Warrioress a real word?
</a>
</li>
<li >
<div class="favicon favicon-hsm" title="History of Science and Mathematics Stack Exchange"></div><a href="http://hsm.stackexchange.com/questions/2631/historically-how-did-people-define-multiplication-for-negative-numbers" class="js-gps-track" data-gps-track="site.switch({ item_type:9, target_site:587 }); posts_hot_network.click({ item_type:2, location:9 })">
Historically, how did people define multiplication for negative numbers?
</a>
</li>
<li >
<div class="favicon favicon-math" title="Mathematics Stack Exchange"></div><a href="http://math.stackexchange.com/questions/1391737/integrating-an-absolute-value-problem" class="js-gps-track" data-gps-track="site.switch({ item_type:9, target_site:69 }); posts_hot_network.click({ item_type:2, location:9 })">
integrating an absolute value problem
</a>
</li>
<li >
<div class="favicon favicon-stackoverflow" title="Stack Overflow"></div><a href="http://stackoverflow.com/questions/31912784/detect-ctrl-a-in-keyup-event" class="js-gps-track" data-gps-track="site.switch({ item_type:9, target_site:1 }); posts_hot_network.click({ item_type:2, location:9 })">
Detect Ctrl + A in keyup event
</a>
</li>
<li >
<div class="favicon favicon-physics" title="Physics Stack Exchange"></div><a href="http://physics.stackexchange.com/questions/199580/where-light-goes-after-it-enters-the-black-hole" class="js-gps-track" data-gps-track="site.switch({ item_type:9, target_site:151 }); posts_hot_network.click({ item_type:2, location:9 })">
Where light goes after it enters the black hole?
</a>
</li>
<li >
<div class="favicon favicon-photo" title="Photography Stack Exchange"></div><a href="http://photo.stackexchange.com/questions/67252/do-i-need-a-uv-filter" class="js-gps-track" data-gps-track="site.switch({ item_type:9, target_site:61 }); posts_hot_network.click({ item_type:2, location:9 })">
Do I need a UV filter?
</a>
</li>
<li >
<div class="favicon favicon-superuser" title="Super User"></div><a href="http://superuser.com/questions/954262/why-do-damaged-hard-drives-freeze-entire-system" class="js-gps-track" data-gps-track="site.switch({ item_type:9, target_site:3 }); posts_hot_network.click({ item_type:2, location:9 })">
Why do damaged hard drives freeze entire system?
</a>
</li>
<li >
<div class="favicon favicon-apple" title="Ask Different"></div><a href="http://apple.stackexchange.com/questions/199517/where-i-can-find-the-official-os-x-10-10-documentation" class="js-gps-track" data-gps-track="site.switch({ item_type:9, target_site:118 }); posts_hot_network.click({ item_type:2, location:9 })">
Where I can find the official OS X 10.10 documentation?
</a>
</li>
<li >
<div class="favicon favicon-stackoverflow" title="Stack Overflow"></div><a href="http://stackoverflow.com/questions/31917830/associativity-of-function-call-operator-in-c" class="js-gps-track" data-gps-track="site.switch({ item_type:9, target_site:1 }); posts_hot_network.click({ item_type:2, location:9 })">
Associativity of function call operator in C
</a>
</li>
<li >
<div class="favicon favicon-electronics" title="Electrical Engineering Stack Exchange"></div><a href="http://electronics.stackexchange.com/questions/184933/can-a-relay-failure-mode-be-like-that" class="js-gps-track" data-gps-track="site.switch({ item_type:9, target_site:135 }); posts_hot_network.click({ item_type:2, location:9 })">
Can a relay failure mode be like that?
</a>
</li>
<li >
<div class="favicon favicon-ux" title="User Experience Stack Exchange"></div><a href="http://ux.stackexchange.com/questions/82386/how-to-encourage-honest-user-behavior-in-ui" class="js-gps-track" data-gps-track="site.switch({ item_type:9, target_site:102 }); posts_hot_network.click({ item_type:2, location:9 })">
How to encourage honest user behavior in UI
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-unix" title="Unix & Linux Stack Exchange"></div><a href="http://unix.stackexchange.com/questions/221970/is-documents-a-relative-or-an-absolute-path" class="js-gps-track" data-gps-track="site.switch({ item_type:9, target_site:106 }); posts_hot_network.click({ item_type:2, location:9 })">
Is `~/Documents` a relative or an absolute path?
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-tex" title="TeX - LaTeX Stack Exchange"></div><a href="http://tex.stackexchange.com/questions/260634/center-and-number-each-equation" class="js-gps-track" data-gps-track="site.switch({ item_type:9, target_site:85 }); posts_hot_network.click({ item_type:2, location:9 })">
center and number each equation
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-rpg" title="Role-playing Games Stack Exchange"></div><a href="http://rpg.stackexchange.com/questions/66917/when-must-the-wizard-choose-to-overchannel" class="js-gps-track" data-gps-track="site.switch({ item_type:9, target_site:122 }); posts_hot_network.click({ item_type:2, location:9 })">
When must the wizard choose to overchannel?
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-sustainability" title="Sustainable Living Stack Exchange"></div><a href="http://sustainability.stackexchange.com/questions/4652/is-creating-hydrogen-fuel-for-the-fuel-cell-from-the-solar-panel-worth-consideri" class="js-gps-track" data-gps-track="site.switch({ item_type:9, target_site:483 }); posts_hot_network.click({ item_type:2, location:9 })">
Is creating hydrogen fuel for the fuel cell from the solar panel worth considering?
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-stats" title="Cross Validated"></div><a href="http://stats.stackexchange.com/questions/166434/how-to-account-for-participants-in-a-study-design" class="js-gps-track" data-gps-track="site.switch({ item_type:9, target_site:65 }); posts_hot_network.click({ item_type:2, location:9 })">
How to account for participants in a study design?
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-space" title="Space Exploration Stack Exchange"></div><a href="http://space.stackexchange.com/questions/10517/why-do-deep-space-probes-have-to-be-sterilized" class="js-gps-track" data-gps-track="site.switch({ item_type:9, target_site:508 }); posts_hot_network.click({ item_type:2, location:9 })">
Why do deep space probes have to be sterilized?
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-blender" title="Blender Stack Exchange"></div><a href="http://blender.stackexchange.com/questions/35425/what-are-these-called-in-the-user-preferences" class="js-gps-track" data-gps-track="site.switch({ item_type:9, target_site:502 }); posts_hot_network.click({ item_type:2, location:9 })">
What are these called in the User Preferences?
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-gis" title="Geographic Information Systems Stack Exchange"></div><a href="http://gis.stackexchange.com/questions/157656/password-protect-qgis-project" class="js-gps-track" data-gps-track="site.switch({ item_type:9, target_site:79 }); posts_hot_network.click({ item_type:2, location:9 })">
Password Protect QGIS project
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-unix" title="Unix & Linux Stack Exchange"></div><a href="http://unix.stackexchange.com/questions/222146/awk-does-not-end" class="js-gps-track" data-gps-track="site.switch({ item_type:9, target_site:106 }); posts_hot_network.click({ item_type:2, location:9 })">
awk does not end
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-japanese" title="Japanese Language Stack Exchange"></div><a href="http://japanese.stackexchange.com/questions/27300/younger-uncles-and-aunts" class="js-gps-track" data-gps-track="site.switch({ item_type:9, target_site:257 }); posts_hot_network.click({ item_type:2, location:9 })">
Younger uncles and aunts
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-security" title="Information Security Stack Exchange"></div><a href="http://security.stackexchange.com/questions/96377/why-do-people-use-ip-bans-when-ip-addresses-often-change" class="js-gps-track" data-gps-track="site.switch({ item_type:9, target_site:162 }); posts_hot_network.click({ item_type:2, location:9 })">
Why do people use IP bans when IP addresses often change?
</a>
</li>
<li class="dno js-hidden">
<div class="favicon favicon-tex" title="TeX - LaTeX Stack Exchange"></div><a href="http://tex.stackexchange.com/questions/260610/drawing-unstructured-grids-with-tikz" class="js-gps-track" data-gps-track="site.switch({ item_type:9, target_site:85 }); posts_hot_network.click({ item_type:2, location:9 })">
Drawing unstructured grids with Tikz
</a>
</li>
</ul>
<a href="#"
class="show-more js-show-more js-gps-track"
data-gps-track="posts_hot_network.click({ item_type:3, location:9 })">
more hot questions
</a>
</div>
</div>
</div>
</div>
<div id="footer" class="categories">
<div class="footerwrap">
<div id="footer-menu">
<div class="top-footer-links">
<a href="/tour">tour</a>
<a href="/help">help</a>
<a href="http://blog.stackoverflow.com?blb=1">blog</a>
<a href="http://chat.stackoverflow.com">chat</a>
<a href="http://data.stackexchange.com">data</a>
<a href="http://stackexchange.com/legal">legal</a>
<a href="http://stackexchange.com/legal/privacy-policy">privacy policy</a>
<a href="http://stackexchange.com/work-here">work here</a>
<a href="http://stackexchange.com/mediakit">advertising info</a>
<a onclick='StackExchange.switchMobile("on")'>mobile</a>
<b><a href="/contact">contact us</a></b>
<b><a href="http://meta.stackoverflow.com">feedback</a></b>
</div>
<div id="footer-sites">
<table>
<tr>
<th colspan=3>
Technology
</th>
<th >
Life / Arts
</th>
<th >
Culture / Recreation
</th>
<th >
Science
</th>
<th >
Other
</th>
</tr>
<tr>
<td>
<ol>
<li><a href="//stackoverflow.com" title="professional and enthusiast programmers">Stack Overflow</a></li>
<li><a href="//serverfault.com" title="system and network administrators">Server Fault</a></li>
<li><a href="//superuser.com" title="computer enthusiasts and power users">Super User</a></li>
<li><a href="//webapps.stackexchange.com" title="power users of web applications">Web Applications</a></li>
<li><a href="//askubuntu.com" title="Ubuntu users and developers">Ask Ubuntu</a></li>
<li><a href="//webmasters.stackexchange.com" title="pro webmasters">Webmasters</a></li>
<li><a href="//gamedev.stackexchange.com" title="professional and independent game developers">Game Development</a></li>
<li><a href="//tex.stackexchange.com" title="users of TeX, LaTeX, ConTeXt, and related typesetting systems">TeX - LaTeX</a></li>
</ol></td><td><ol>
<li><a href="//programmers.stackexchange.com" title="professional programmers interested in conceptual questions about software development">Programmers</a></li>
<li><a href="//unix.stackexchange.com" title="users of Linux, FreeBSD and other Un*x-like operating systems.">Unix & Linux</a></li>
<li><a href="//apple.stackexchange.com" title="power users of Apple hardware and software">Ask Different (Apple)</a></li>
<li><a href="//wordpress.stackexchange.com" title="WordPress developers and administrators">WordPress Development</a></li>
<li><a href="//gis.stackexchange.com" title="cartographers, geographers and GIS professionals">Geographic Information Systems</a></li>
<li><a href="//electronics.stackexchange.com" title="electronics and electrical engineering professionals, students, and enthusiasts">Electrical Engineering</a></li>
<li><a href="//android.stackexchange.com" title="enthusiasts and power users of the Android operating system">Android Enthusiasts</a></li>
<li><a href="//security.stackexchange.com" title="information security professionals">Information Security</a></li>
</ol></td><td><ol>
<li><a href="//dba.stackexchange.com" title="database professionals who wish to improve their database skills and learn from others in the community">Database Administrators</a></li>
<li><a href="//drupal.stackexchange.com" title="Drupal developers and administrators">Drupal Answers</a></li>
<li><a href="//sharepoint.stackexchange.com" title="SharePoint enthusiasts">SharePoint</a></li>
<li><a href="//ux.stackexchange.com" title="user experience researchers and experts">User Experience</a></li>
<li><a href="//mathematica.stackexchange.com" title="users of Mathematica">Mathematica</a></li>
<li><a href="//salesforce.stackexchange.com" title="Salesforce administrators, implementation experts, developers and anybody in-between">Salesforce</a></li>
<li><a href="//expressionengine.stackexchange.com" title="administrators, end users, developers and designers for ExpressionEngine® CMS">ExpressionEngine® Answers</a></li>
<li>
<a href="http://stackexchange.com/sites#technology" class="more">
more (13)
</a>
</li>
</ol>
</td>
<td>
<ol>
<li><a href="//photo.stackexchange.com" title="professional, enthusiast and amateur photographers">Photography</a></li>
<li><a href="//scifi.stackexchange.com" title="science fiction and fantasy enthusiasts">Science Fiction & Fantasy</a></li>
<li><a href="//graphicdesign.stackexchange.com" title="Graphic Design professionals, students, and enthusiasts">Graphic Design</a></li>
<li><a href="//movies.stackexchange.com" title="movie and tv enthusiasts">Movies & TV</a></li>
<li><a href="//cooking.stackexchange.com" title="professional and amateur chefs">Seasoned Advice (cooking)</a></li>
<li><a href="//diy.stackexchange.com" title="contractors and serious DIYers">Home Improvement</a></li>
<li><a href="//money.stackexchange.com" title="people who want to be financially literate">Personal Finance & Money</a></li>
<li><a href="//academia.stackexchange.com" title="academics and those enrolled in higher education">Academia</a></li>
<li>
<a href="http://stackexchange.com/sites#lifearts" class="more">
more (9)
</a>
</li>
</ol>
</td>
<td>
<ol>
<li><a href="//english.stackexchange.com" title="linguists, etymologists, and serious English language enthusiasts">English Language & Usage</a></li>
<li><a href="//skeptics.stackexchange.com" title="scientific skepticism">Skeptics</a></li>
<li><a href="//judaism.stackexchange.com" title="those who base their lives on Jewish law and tradition and anyone interested in learning more">Mi Yodeya (Judaism)</a></li>
<li><a href="//travel.stackexchange.com" title="road warriors and seasoned travelers">Travel</a></li>
<li><a href="//christianity.stackexchange.com" title="committed Christians, experts in Christianity and those interested in learning more">Christianity</a></li>
<li><a href="//gaming.stackexchange.com" title="passionate videogamers on all platforms">Arqade (gaming)</a></li>
<li><a href="//bicycles.stackexchange.com" title="people who build and repair bicycles, people who train cycling, or commute on bicycles">Bicycles</a></li>
<li><a href="//rpg.stackexchange.com" title="gamemasters and players of tabletop, paper-and-pencil role-playing games">Role-playing Games</a></li>
<li>
<a href="http://stackexchange.com/sites#culturerecreation" class="more">
more (21)
</a>
</li>
</ol>
</td>
<td>
<ol>
<li><a href="//math.stackexchange.com" title="people studying math at any level and professionals in related fields">Mathematics</a></li>
<li><a href="//stats.stackexchange.com" title="people interested in statistics, machine learning, data analysis, data mining, and data visualization">Cross Validated (stats)</a></li>
<li><a href="//cstheory.stackexchange.com" title="theoretical computer scientists and researchers in related fields">Theoretical Computer Science</a></li>
<li><a href="//physics.stackexchange.com" title="active researchers, academics and students of physics">Physics</a></li>
<li><a href="//mathoverflow.net" title="professional mathematicians">MathOverflow</a></li>
<li><a href="//chemistry.stackexchange.com" title="scientists, academics, teachers and students">Chemistry</a></li>
<li><a href="//biology.stackexchange.com" title="biology researchers, academics, and students">Biology</a></li>
<li>
<a href="http://stackexchange.com/sites#science" class="more">
more (5)
</a>
</li>
</ol>
</td>
<td>
<ol>
<li><a href="//stackapps.com" title="apps, scripts, and development with the Stack Exchange API">Stack Apps</a></li>
<li><a href="//meta.stackexchange.com" title="meta-discussion of the Stack Exchange family of Q&A websites">Meta Stack Exchange</a></li>
<li><a href="//area51.stackexchange.com" title="proposing new sites in the Stack Exchange network">Area 51</a></li>
<li><a href="//careers.stackoverflow.com">Stack Overflow Careers</a></li>
</ol>
</td>
</tr>
</table>
</div>
</div>
<div id="copyright">
site design / logo © 2015 Stack Exchange Inc; user contributions licensed under <a href="http://creativecommons.org/licenses/by-sa/3.0/" rel="license">cc by-sa 3.0</a>
with <a href="http://blog.stackoverflow.com/2009/06/attribution-required/" rel="license">attribution required</a>
</div>
<div id="svnrev">
rev 2015.8.10.683
</div>
</div>
</div>
<noscript>
<div id="noscript-warning">Stack Overflow works best with JavaScript enabled<img src="http://pixel.quantserve.com/pixel/p-c1rF4kxgLUzNc.gif" alt="" class="dno"></div>
</noscript>
<script>var p = "http", d = "static"; if (document.location.protocol == "https:") { p += "s"; d = "engine"; } var z = document.createElement("script"); z.type = "text/javascript"; z.async = true; z.src = p + "://" + d + ".adzerk.net/ados.js"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(z, s);</script>
<script>
var ados = ados || {};
ados.run = ados.run || [];
ados.run.push(function () { ados_setKeywords('rust');; ados_load(); });
</script>
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * new Date(); a = s.createElement(o),
m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m);
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', 'UA-5620270-1');
ga('set', 'dimension2', '|rust|');
ga('send', 'pageview');
var _qevents = _qevents || [],
_comscore = _comscore || [];
(function () {
var ssl='https:'==document.location.protocol,
s=document.getElementsByTagName('script')[0],
qc=document.createElement('script');
qc.async=true;
qc.src=(ssl?'https://secure':'http://edge')+'.quantserve.com/quant.js';
s.parentNode.insertBefore(qc, s);
var sc=document.createElement('script');
sc.async=true;
sc.src=(ssl?'https://sb':'http://b') + '.scorecardresearch.com/beacon.js';
s.parentNode.insertBefore(sc, s);
})();
_comscore.push({ c1: "2", c2: "17440561" });
_qevents.push({ qacct: "p-c1rF4kxgLUzNc" });
</script>
</body>
</html>