forked from rust-lang/prev.rust-lang.org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
63 lines (59 loc) · 2.08 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
layout: sv-SE/basic
title: Programmeringsspråket Rust
---
<div class="row pitch-row">
<div class="col-md-8">
<p class="pitch">
<b>Rust</b> är ett systemprogrammeringsspråk som körs oerhört snabbt,
förhindrar segmenteringsfel och garanterar trådsäkerhet.
<br/>
<b><a href="friends.html">Se vilka som använder Rust.</a></b>
</p>
</div>
<div class="col-md-4">
<a class="release-button" href="install.html">
<div class="release-version">Installera Rust <span>{{ site.stable }}</span></div>
</a>
<div class="release-date">
<a href="{{ site.stable_blog }}">{{ site.stable_date | date: "%B %-d, %Y" }}</a>
</div>
</div>
</div>
<div class="row code-row">
<div class="col-md-4">
<h2>Med</h2>
<ul class="laundry-list">
<li>nollkostnadsabstraktioner</li>
<li>move-semantik</li>
<li>garanterad minnessäkerhet</li>
<li>trådning utan data races</li>
<li>trait-baserad generics</li>
<li>pattern matching</li>
<li>typinferens</li>
<li>minimal runtime</li>
<li>effektiva C-bindings</li>
</ul>
</div>
<div class="col-md-8">
<div id="active-code">
<button type="button" class="btn btn-primary btn-sm" id="run-code">Kör</button>
<div id="editor">{% include example.rs %}</div>
<div id="result" data-msg-running="Kör...">
<a id="playlink"><i class="icon-link-ext"></i></a>
</div>
</div>
<div id="static-code">{% include example.rs.html %}</div>
<div class="more-examples">
<a href="https://doc.rust-lang.org/rust-by-example/">Fler exempel</a>
</div>
</div>
</div>
<script type="text/javascript">
{% include include.js %}
include("https://cdn.jsdelivr.net/ace/1.1.3/noconflict/ace.js", function () {
include("https://cdn.jsdelivr.net/ace/1.1.3/noconflict/mode-rust.js", function () {
{% include editor.js %}
});
});
</script>