<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-Hans-CN">
	<id>https://wiki.riguz.com/index.php?action=history&amp;feed=atom&amp;title=Rust_basics</id>
	<title>Rust basics - 版本历史</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.riguz.com/index.php?action=history&amp;feed=atom&amp;title=Rust_basics"/>
	<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=Rust_basics&amp;action=history"/>
	<updated>2026-06-02T22:21:13Z</updated>
	<subtitle>本wiki上该页面的版本历史</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://wiki.riguz.com/index.php?title=Rust_basics&amp;diff=3756&amp;oldid=prev</id>
		<title>Riguz：​/* rust语言的一些惯例 */</title>
		<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=Rust_basics&amp;diff=3756&amp;oldid=prev"/>
		<updated>2023-12-19T05:47:09Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;rust语言的一些惯例&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2023年12月19日 (二) 05:47的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l221&quot;&gt;第221行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第221行：&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Category:Rust]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wiki_db:diff:1.41:old-3755:rev-3756:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Riguz</name></author>
	</entry>
	<entry>
		<id>https://wiki.riguz.com/index.php?title=Rust_basics&amp;diff=3755&amp;oldid=prev</id>
		<title>Riguz：​Riguz移动页面Blog:Rust(1) 基本语法至Rust basics，不留重定向</title>
		<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=Rust_basics&amp;diff=3755&amp;oldid=prev"/>
		<updated>2023-12-19T05:46:51Z</updated>

		<summary type="html">&lt;p&gt;Riguz移动页面&lt;a href=&quot;/index.php?title=Blog:Rust(1)_%E5%9F%BA%E6%9C%AC%E8%AF%AD%E6%B3%95&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Blog:Rust(1) 基本语法（页面不存在）&quot;&gt;Blog:Rust(1) 基本语法&lt;/a&gt;至&lt;a href=&quot;/Rust_basics&quot; title=&quot;Rust basics&quot;&gt;Rust basics&lt;/a&gt;，不留重定向&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;zh-Hans-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;2023年12月19日 (二) 05:46的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;zh-Hans-CN&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;（没有差异）&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key wiki_db:diff:1.41:old-2531:rev-3755 --&gt;
&lt;/table&gt;</summary>
		<author><name>Riguz</name></author>
	</entry>
	<entry>
		<id>https://wiki.riguz.com/index.php?title=Rust_basics&amp;diff=2531&amp;oldid=prev</id>
		<title>imported&gt;Riguz：​使用rust语言编写hello world再容易不过了：
```rust
fn main() {
    println!(&quot;Hello world!&quot;);
}
```
然后利用rustc编译器编译即可:
```bash
rustc hell.rs -o hello.out &amp;&amp; ./hello.out
```</title>
		<link rel="alternate" type="text/html" href="https://wiki.riguz.com/index.php?title=Rust_basics&amp;diff=2531&amp;oldid=prev"/>
		<updated>2019-10-22T00:00:00Z</updated>

		<summary type="html">&lt;p&gt;使用rust语言编写hello world再容易不过了： ```rust fn main() {     println!(&amp;quot;Hello world!&amp;quot;); } ``` 然后利用rustc编译器编译即可: ```bash rustc hell.rs -o hello.out &amp;amp;&amp;amp; ./hello.out ```&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;使用rust语言编写hello world再容易不过了：&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;rust&amp;quot;&amp;gt;&lt;br /&gt;
fn main() {&lt;br /&gt;
    println!(&amp;quot;Hello world!&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
然后利用rustc编译器编译即可:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;bash&amp;quot;&amp;gt;&lt;br /&gt;
rustc hell.rs -o hello.out &amp;amp;&amp;amp; ./hello.out&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
= 可变(mutable)与不可变(immutable)=&lt;br /&gt;
rust程序默认的变量是不可变的，类似Scala这种函数式编程的语言，鼓励用户使用immutable的变量。当然如果你非想要使用可变的对象也是支持的：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;rust&amp;quot;&amp;gt;&lt;br /&gt;
let i = 32; // immutable&lt;br /&gt;
let mut i = 32;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
编译器会检查是否对不可变对象重新赋值:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
  |&lt;br /&gt;
4 |     let i = 10;&lt;br /&gt;
  |         -&lt;br /&gt;
  |         |&lt;br /&gt;
  |         first assignment to `i`&lt;br /&gt;
  |         help: make this binding mutable: `mut i`&lt;br /&gt;
...&lt;br /&gt;
7 |     i = 99;&lt;br /&gt;
  |     ^^^^^^ cannot assign twice to immutable variable&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
那么，对于简单类型直接赋值会有问题，如果是复杂类型，如何呢？比如我们用一个不可变的字符串，然后去调用它的函数改变值，会发生生么情况呢？&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
--&amp;gt; test.rs:5:5&lt;br /&gt;
  |&lt;br /&gt;
4 |     let s = String::from(&amp;quot;hello&amp;quot;);&lt;br /&gt;
  |         - help: consider changing this to be mutable: `mut s`&lt;br /&gt;
5 |     s.push_str(&amp;quot; world!!!&amp;quot;);&lt;br /&gt;
  |     ^ cannot borrow as mutable&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
结果表明，rust依然保持对象是不可变的。看了一下这个方法的定义，有些蹊跷：&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;rust&amp;quot;&amp;gt;&lt;br /&gt;
pub fn push_str(&amp;amp;mut self, string: &amp;amp;str) {&lt;br /&gt;
    self.vec.extend_from_slice(string.as_bytes())&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
具体怎么做到的，我们后面再来研究。&lt;br /&gt;
&lt;br /&gt;
= 基本类型=&lt;br /&gt;
rust跟大多数编译型语言一样是静态类型(statically typed)的语言，即所有的变量的类型在程序编译的时候就是已知的。在rust语言中，有着如下的基本类型：&lt;br /&gt;
&lt;br /&gt;
== 标量类型(Scalar types)==&lt;br /&gt;
&lt;br /&gt;
类型          长度&lt;br /&gt;
------------ -------- ----------------------------------------&lt;br /&gt;
bool         1        true/ false&lt;br /&gt;
char         4        并不等同于Unicode&lt;br /&gt;
i8/u8        8&lt;br /&gt;
i16/u16      16&lt;br /&gt;
i32/u32      32       i32是默认类型，通常拥有最快的速度&lt;br /&gt;
i64/u64      64&lt;br /&gt;
i128/u128    128&lt;br /&gt;
isize/usize  arch     取决于机器架构，在32位机器上位32位，64位上位64位&lt;br /&gt;
f32          32       浮点数使用IEEE-754标准&lt;br /&gt;
f64          64&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;rust&amp;quot;&amp;gt;&lt;br /&gt;
let f = true;&lt;br /&gt;
let sum:i32 = 100;&lt;br /&gt;
let heart_eyed_cat = &amp;#039;😻&amp;#039;;&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
== 复合类型(Compound types)==&lt;br /&gt;
&lt;br /&gt;
复合类型分为元组（Tuple）和数组。元组可以用来将不同类型的解构组合到一起：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;rust&amp;quot;&amp;gt;&lt;br /&gt;
let t: (i32, bool) = (100, false);&lt;br /&gt;
&lt;br /&gt;
let (x, y) = t; // 解构元组&lt;br /&gt;
let x = t.0;    // 或者通过序号访问&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
数组的与元组的区别在于数组中包含的都是同一种数据类型的值。&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;rust&amp;quot;&amp;gt;&lt;br /&gt;
let a = [1, 2, 3];&lt;br /&gt;
let a: [i32; 5] = [1, 2, 3, 4, 5]; // 显示声明一个数组&lt;br /&gt;
let b = [10; 5];                   // 声明初始值为10、长度为5的数组&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
值得注意的是，在rust中元组和数组都是固定长度的，一旦声明以后就不可以更改。如果非要可变长度的集合，那么可以考虑使用标准库中的`vector`。并且数组中的元素也是不可以更改的，如果尝试去更改一个不可变的对象编译时会出错：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
6 |     let b = [100; 5];&lt;br /&gt;
  |         - help: consider changing this to be mutable: `mut b`&lt;br /&gt;
7 |     b[1] = 1024;&lt;br /&gt;
  |     ^^^^^^^^^^^ cannot assign&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
这和一些其他的语言(例如Java中的final)是有区别的。&lt;br /&gt;
&lt;br /&gt;
数组中如果如果声明的长度和和实际值的长度不一样会怎样呢？rust在编译时就会出错：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 --&amp;gt; hell.rs:11:23&lt;br /&gt;
   |&lt;br /&gt;
11 |     let a: [i32; 3] = [1];&lt;br /&gt;
   |                       ^^^ expected an array with a fixed size of 3 elements, found one with 1 element&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
另外，rust程序会在运行时对数组的边界进行检查，如果越界访问数组将抛出错误而结束程序，而不是返回一个错误的内存。&lt;br /&gt;
&lt;br /&gt;
= 方法=&lt;br /&gt;
在rust中定义一个方法使用`fn`关键字定义：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;rust&amp;quot;&amp;gt;&lt;br /&gt;
fn foo(i: i32, j: i32) {&lt;br /&gt;
    let sum = i + j&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// 带有返回值的方法&lt;br /&gt;
fn sum(i: i32, j: i32) -&amp;gt; i32 {&lt;br /&gt;
    i + j&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
在rust中方法是第一类值，意味着你可以这样操作：&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;rust&amp;quot;&amp;gt;&lt;br /&gt;
let fn_s  = sum;&lt;br /&gt;
let s = fn_s(i, j);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
另外，方法中包含在大括号中的语句块，被称作是表达式(expression)，可以这样用：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;rust&amp;quot;&amp;gt;&lt;br /&gt;
let a = {&lt;br /&gt;
   e + 10&lt;br /&gt;
};&lt;br /&gt;
println!(&amp;quot;{}&amp;quot;, a);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= 流程控制=&lt;br /&gt;
&lt;br /&gt;
== if语句==&lt;br /&gt;
&lt;br /&gt;
rust的if语句和其他语言基本类似，稍微有一点区别：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;rust&amp;quot;&amp;gt;&lt;br /&gt;
if e % 2 == 0 {        // if条件后面不用写小括号&lt;br /&gt;
    println!(&amp;quot;{}&amp;quot;, e);&lt;br /&gt;
} else if e % 3 == 0 { // 但是后面的语句块必须包含在大括号之中，哪怕只有一行&lt;br /&gt;
    println!(&amp;quot;{} % 3 ==0&amp;quot;, e);&lt;br /&gt;
} else {&lt;br /&gt;
    println!(&amp;quot;:p&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== 条件赋值==&lt;br /&gt;
&lt;br /&gt;
因为if语句本身是一个表达式，所以可以把if和let联合在一起来使用，也就是条件赋值：&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;rust&amp;quot;&amp;gt;&lt;br /&gt;
let a = if condition {&lt;br /&gt;
    5&lt;br /&gt;
} else {&lt;br /&gt;
    6&lt;br /&gt;
};&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
当然前提是不同的分支下的语句要是一样的类型，否则编译器会检测出错误。&lt;br /&gt;
&lt;br /&gt;
== 循环==&lt;br /&gt;
rust的`loop`关键字支持创建一个循环:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;rust&amp;quot;&amp;gt;&lt;br /&gt;
let mut i = 0;&lt;br /&gt;
loop {&lt;br /&gt;
    i += 1;&lt;br /&gt;
    println!(&amp;quot;-&amp;gt;{}&amp;quot;, i);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
基本上这就是一个死循环了。不知道为啥要定义这样一个奇葩的关键字。索性我们可以像其他编程语言一样`break`。值得注意的是，跟条件赋值一样，loop语句也是可以和let一起来赋值的，像下面这样：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;rust&amp;quot;&amp;gt;&lt;br /&gt;
let s = loop {&lt;br /&gt;
    i += 1;&lt;br /&gt;
    println!(&amp;quot;-&amp;gt;{}&amp;quot;, i);&lt;br /&gt;
    if(i &amp;gt; 100) {&lt;br /&gt;
        break i;&lt;br /&gt;
    }&lt;br /&gt;
};&lt;br /&gt;
println!(&amp;quot;s = {}&amp;quot;, s); // s = 101&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
除了这个`loop`外，也可以“正常的”像其他语言一样，使用`while`和`for`进行条件循环：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;rust&amp;quot;&amp;gt;&lt;br /&gt;
while i &amp;lt; 1000 {    // 不用写小括号&lt;br /&gt;
    i += 1;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
for e in a.iter() { // 使用for循环遍历数组&lt;br /&gt;
    println!(&amp;quot;{}&amp;quot;, e); &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
// for i in (1..10).rev()&lt;br /&gt;
// 使用rev()反转顺序&lt;br /&gt;
for i in (1..10) {&lt;br /&gt;
    println!(&amp;quot;{}&amp;quot;, i);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
= rust语言的一些惯例=&lt;br /&gt;
&lt;br /&gt;
== 命名方式==&lt;br /&gt;
&lt;br /&gt;
rust中推荐使用蛇形命名(snake case)来作为方法和变量的命名方式，所有的标识符都是小写且使用下划线分隔，例如：&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;rust&amp;quot;&amp;gt;&lt;br /&gt;
let foo_bar = 1;&lt;br /&gt;
&lt;br /&gt;
fn print_info() {&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>imported&gt;Riguz</name></author>
	</entry>
</feed>