2019-05-25 16:23:58 +02:00
|
|
|
|
|
|
|
<style>
|
2019-07-18 18:49:32 +03:00
|
|
|
body { margin: 0; }
|
|
|
|
pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padding: 0.4em; }
|
2019-05-25 16:23:58 +02:00
|
|
|
|
2019-07-18 18:49:32 +03:00
|
|
|
.comment { color: #7F9F7F; }
|
|
|
|
.string { color: #CC9393; }
|
2019-12-20 14:10:31 +01:00
|
|
|
.field { color: #94BFF3; }
|
2019-07-18 18:49:32 +03:00
|
|
|
.function { color: #93E0E3; }
|
|
|
|
.parameter { color: #94BFF3; }
|
|
|
|
.text { color: #DCDCCC; }
|
2019-12-07 20:09:53 +01:00
|
|
|
.type { color: #7CB8BB; }
|
2019-12-17 14:43:37 +01:00
|
|
|
.type\.builtin { color: #8CD0D3; }
|
2019-12-15 10:20:22 +02:00
|
|
|
.type\.param { color: #20999D; }
|
2019-07-18 19:57:13 +03:00
|
|
|
.attribute { color: #94BFF3; }
|
|
|
|
.literal { color: #BFEBBF; }
|
2019-12-15 10:20:22 +02:00
|
|
|
.literal\.numeric { color: #6A8759; }
|
2019-07-18 19:57:13 +03:00
|
|
|
.macro { color: #94BFF3; }
|
|
|
|
.variable { color: #DCDCCC; }
|
|
|
|
.variable\.mut { color: #DCDCCC; text-decoration: underline; }
|
2019-05-25 16:23:58 +02:00
|
|
|
|
2019-07-18 18:49:32 +03:00
|
|
|
.keyword { color: #F0DFAF; }
|
2019-07-18 19:57:13 +03:00
|
|
|
.keyword\.unsafe { color: #DFAF8F; }
|
|
|
|
.keyword\.control { color: #F0DFAF; font-weight: bold; }
|
2019-05-25 16:23:58 +02:00
|
|
|
</style>
|
|
|
|
<pre><code><span class="keyword">fn</span> <span class="function">main</span>() {
|
2020-01-21 00:06:47 +08:00
|
|
|
<span class="keyword">let</span> <span class="variable" data-binding-hash="2217585909179791122" style="color: hsl(280,74%,48%);">hello</span> = <span class="string">"hello"</span>;
|
|
|
|
<span class="keyword">let</span> <span class="variable" data-binding-hash="4303609361109701698" style="color: hsl(242,75%,88%);">x</span> = <span class="variable" data-binding-hash="2217585909179791122" style="color: hsl(280,74%,48%);">hello</span>.to_string();
|
|
|
|
<span class="keyword">let</span> <span class="variable" data-binding-hash="13865792086344377029" style="color: hsl(340,64%,86%);">y</span> = <span class="variable" data-binding-hash="2217585909179791122" style="color: hsl(280,74%,48%);">hello</span>.to_string();
|
2019-05-25 16:23:58 +02:00
|
|
|
|
2020-01-21 00:06:47 +08:00
|
|
|
<span class="keyword">let</span> <span class="variable" data-binding-hash="7011301204224269512" style="color: hsl(198,45%,40%);">x</span> = <span class="string">"other color please!"</span>;
|
|
|
|
<span class="keyword">let</span> <span class="variable" data-binding-hash="12461245066629867975" style="color: hsl(132,91%,68%);">y</span> = <span class="variable" data-binding-hash="7011301204224269512" style="color: hsl(198,45%,40%);">x</span>.to_string();
|
2019-07-19 15:53:16 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
<span class="keyword">fn</span> <span class="function">bar</span>() {
|
2020-01-21 00:06:47 +08:00
|
|
|
<span class="keyword">let</span> <span class="keyword">mut</span> <span class="variable.mut" data-binding-hash="2217585909179791122" style="color: hsl(280,74%,48%);">hello</span> = <span class="string">"hello"</span>;
|
2019-05-25 16:23:58 +02:00
|
|
|
}</code></pre>
|