<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>第2天上午 on 编程那些事儿</title><link>https://before80.github.io/prgms/Rust/comprehensiveRust/day2-morning/</link><description>Recent content in 第2天上午 on 编程那些事儿</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Tue, 11 Aug 2026 23:57:44 +0800</lastBuildDate><atom:link href="https://before80.github.io/prgms/Rust/comprehensiveRust/day2-morning/index.xml" rel="self" type="application/rss+xml"/><item><title>1 欢迎</title><link>https://before80.github.io/prgms/Rust/comprehensiveRust/day2-morning/01-welcome-day-2/</link><pubDate>Tue, 11 Aug 2026 11:30:00 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/comprehensiveRust/day2-morning/01-welcome-day-2/</guid><description>&lt;blockquote&gt;
&lt;p&gt;译文 · 基于 &lt;a href="https://google.github.io/comprehensive-rust/"&gt;Comprehensive Rust&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;原文链接: &lt;a href="https://google.github.io/comprehensive-rust/welcome-day-2.html"&gt;https://google.github.io/comprehensive-rust/welcome-day-2.html&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1 id="1-欢迎"&gt;1 欢迎&lt;/h1&gt;
&lt;p&gt;我们已经讲过 Rust 的基础：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;基本类型：&lt;/strong&gt; 整数、布尔值、字符、元组与数组。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;控制流：&lt;/strong&gt; &lt;code&gt;if&lt;/code&gt; 表达式、循环与 &lt;code&gt;match&lt;/code&gt; 表达式。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;函数：&lt;/strong&gt; 如何定义与调用函数。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;用户自定义类型：&lt;/strong&gt; 用 &lt;code&gt;struct&lt;/code&gt; 与 &lt;code&gt;enum&lt;/code&gt; 建模数据。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;引用：&lt;/strong&gt; 用 &lt;code&gt;&amp;amp;&lt;/code&gt; 与 &lt;code&gt;&amp;amp;mut&lt;/code&gt; 做基本借用（borrowing）。&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;现在你可以构造 Rust 中的任意类型，并实现基本逻辑了！&lt;/p&gt;</description></item></channel></rss>