<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Rust学习笔记 on 极客老墨</title>
    <link>https://blog.hankmo.com/series/rust%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/</link>
    <description>Recent content in Rust学习笔记 on 极客老墨</description>
    <generator>Hugo -- 0.163.3</generator>
    <language>zh-cn</language>
    <lastBuildDate>Fri, 12 Jun 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://blog.hankmo.com/series/rust%E5%AD%A6%E4%B9%A0%E7%AC%94%E8%AE%B0/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Rust 学习笔记 27：FFI 交互 (Foreign Function Interface)</title>
      <link>https://blog.hankmo.com/rust-learning-27-ffi/</link>
      <pubDate>Fri, 12 Jun 2026 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-27-ffi/</guid>
      <description>Rust 的目标之一就是接班 C/C&#43;&#43;，所以它与 C 的互操作性必须是顶级的。零开销调用 C 代码，或者被 C 调用。</description>
    </item>
    <item>
      <title>Rust 学习笔记 26：宏入门 (Macros)</title>
      <link>https://blog.hankmo.com/rust-learning-26-macros/</link>
      <pubDate>Wed, 20 May 2026 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-26-macros/</guid>
      <description>Rust 的宏不仅仅是字符串替换，它是基于 AST 的元编程工具。从 println! 到 vec!，宏无处不在。</description>
    </item>
    <item>
      <title>Rust 学习笔记 25：高级特性 (Advanced Features)</title>
      <link>https://blog.hankmo.com/rust-learning-25-advanced/</link>
      <pubDate>Wed, 15 Apr 2026 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-25-advanced/</guid>
      <description>Rust 的黑魔法集合。Unsafe Rust 让我们突破安全限制，高级 Trait 和类型系统让 Rust 的抽象能力登峰造极。</description>
    </item>
    <item>
      <title>Rust 学习笔记 24：模式匹配详情 (Pattern Matching)</title>
      <link>https://blog.hankmo.com/rust-learning-24-patterns/</link>
      <pubDate>Mon, 30 Mar 2026 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-24-patterns/</guid>
      <description>模式匹配不仅仅是 switch-case 的语法糖，它是一种强大的数据解构和控制流机制。</description>
    </item>
    <item>
      <title>Rust 学习笔记 23：面向对象特性 (Object Oriented Features)</title>
      <link>https://blog.hankmo.com/rust-learning-23-oop/</link>
      <pubDate>Tue, 20 Jan 2026 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-23-oop/</guid>
      <description>Rust 不是传统的 OOP 语言（没有继承），但它提供了 Trait Objects 实现动态多态。谁说没有继承就不能面向对象？</description>
    </item>
    <item>
      <title>Rust 学习笔记 22：共享状态并发 (Shared-State Concurrency)</title>
      <link>https://blog.hankmo.com/rust-learning-22-shared-state/</link>
      <pubDate>Sun, 30 Nov 2025 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-22-shared-state/</guid>
      <description>如果说 Channel 是消息传递并发，那 Mutex 就是共享状态并发。在 Rust 中，类型系统甚至能帮你检查锁的正确使用。</description>
    </item>
    <item>
      <title>Rust 学习笔记 21：并发编程 (无畏并发)</title>
      <link>https://blog.hankmo.com/rust-learning-21-concurrency/</link>
      <pubDate>Sat, 29 Nov 2025 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-21-concurrency/</guid>
      <description>Fearless Concurrency. Rust 利用所有权系统，让并发编程变得既安全又容易。编译通过即意味着没有数据竞争。</description>
    </item>
    <item>
      <title>Rust 学习笔记 20：项目实战二：构建 grep 命令行工具 (minigrep)</title>
      <link>https://blog.hankmo.com/rust-learning-20-minigrep/</link>
      <pubDate>Tue, 04 Nov 2025 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-20-minigrep/</guid>
      <description>纸上得来终觉浅。在掌握了所有权、生命周期、错误处理、Trait 和 迭代器后，我们终于可以写一个真正有用的工具了。</description>
    </item>
    <item>
      <title>Rust 学习笔记 19：智能指针 (Smart Pointers)</title>
      <link>https://blog.hankmo.com/rust-learning-19-smart-pointers/</link>
      <pubDate>Thu, 28 Aug 2025 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-19-smart-pointers/</guid>
      <description>智能指针不仅仅是指针，它还拥有元数据和行为。Rust 的智能指针通常是实现了 Deref 和 Drop Trait 的结构体。</description>
    </item>
    <item>
      <title>Rust 学习笔记 18：闭包与迭代器 (Closures &amp; Iterators)</title>
      <link>https://blog.hankmo.com/rust-learning-18-functional/</link>
      <pubDate>Wed, 20 Aug 2025 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-18-functional/</guid>
      <description>Rust深受函数式编程的影响。闭包和迭代器不仅让代码更简洁，而且得益于零成本抽象，这也是 Rust 性能的秘密武器。</description>
    </item>
    <item>
      <title>Rust 学习笔记 17：自动化测试 (Automated Testing)</title>
      <link>https://blog.hankmo.com/rust-learning-17-testing/</link>
      <pubDate>Tue, 10 Jun 2025 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-17-testing/</guid>
      <description>Rust 也就是在语言层面内置了测试框架而已。`cargo test` 一键运行，从此告别 hack 脚本。</description>
    </item>
    <item>
      <title>Rust 学习笔记 15：Traits (特质)</title>
      <link>https://blog.hankmo.com/rust-learning-15-traits/</link>
      <pubDate>Tue, 20 May 2025 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-15-traits/</guid>
      <description>Trait 是 Rust 实现多态的核心机制。它有点像 Java 的 Interface，但又包含了默认实现和关联类型等高级特性。</description>
    </item>
    <item>
      <title>Rust 学习笔记 16：生命周期 (Lifetimes)</title>
      <link>https://blog.hankmo.com/rust-learning-16-lifetimes/</link>
      <pubDate>Tue, 20 May 2025 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-16-lifetimes/</guid>
      <description>如果说所有权是 Rust 的灵魂，那生命周期就是灵魂的枷锁。它确保了引用永远有效，彻底消灭了悬垂指针。</description>
    </item>
    <item>
      <title>Rust 学习笔记 14：泛型 (Generics)</title>
      <link>https://blog.hankmo.com/rust-learning-14-generics/</link>
      <pubDate>Sat, 26 Apr 2025 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-14-generics/</guid>
      <description>Go 语言直到 1.18 才引入泛型，而 Rust 从一开始就视其为生命。泛型是 Rust 实现零成本抽象的基石。</description>
    </item>
    <item>
      <title>Rust 学习笔记 13：错误处理 (Error Handling)</title>
      <link>https://blog.hankmo.com/rust-learning-13-error-handling/</link>
      <pubDate>Tue, 11 Mar 2025 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-13-error-handling/</guid>
      <description>Rust 将错误分为可恢复 (Result) 和不可恢复 (Panic)。这比 Go 的 error interface 更具表达力，也比 Java 的 try-catch 更安全。</description>
    </item>
    <item>
      <title>Rust 学习笔记 12：常用集合 (Collections)</title>
      <link>https://blog.hankmo.com/rust-learning-12-collections/</link>
      <pubDate>Tue, 18 Feb 2025 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-12-collections/</guid>
      <description>数组和元组都分配在栈上，不够灵活。要想存储动态数据，这三个集合是你的必修课：Vector, String, HashMap。</description>
    </item>
    <item>
      <title>Rust 学习笔记 11：包与模块 (Packages &amp; Modules)</title>
      <link>https://blog.hankmo.com/rust-learning-11-modules/</link>
      <pubDate>Thu, 06 Feb 2025 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-11-modules/</guid>
      <description>Rust 的模块系统曾是劝退无数人的噩梦。use, mod, pub, crate, package... 到底谁是谁？为什么我就是引不到那个文件？今天我们彻底搞清楚。</description>
    </item>
    <item>
      <title>Rust 学习笔记 10：项目实战一：猜数字</title>
      <link>https://blog.hankmo.com/rust-learning-10-guessing-game/</link>
      <pubDate>Wed, 25 Dec 2024 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-10-guessing-game/</guid>
      <description>纸上得来终觉浅。今天我们把之前学到的所有知识（IO、变量、引用、枚举、match、Crates）串起来，写一个完整的控制台游戏。</description>
    </item>
    <item>
      <title>Rust 学习笔记 09：枚举与模式匹配</title>
      <link>https://blog.hankmo.com/rust-learning-09-enums/</link>
      <pubDate>Sat, 30 Nov 2024 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-09-enums/</guid>
      <description>Rust 的 Enum 根本不是你想象中的那种只能枚举 0,1,2 的常量组。它是代数数据类型，配合 match 模式匹配，它是处理复杂状态和空值 (Null) 的终极武器。</description>
    </item>
    <item>
      <title>Rust 学习笔记 08：结构体 (Structs)</title>
      <link>https://blog.hankmo.com/rust-learning-08-structs/</link>
      <pubDate>Tue, 15 Oct 2024 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-08-structs/</guid>
      <description>结构体是 Rust 中自定义数据类型的基石。它不仅像 Go 的 struct 那样承载数据，还是 Rust 面向对象特性的载体（虽然 Rust 并不是纯 OO 语言）。</description>
    </item>
    <item>
      <title>Rust 学习笔记 07：Slice 类型</title>
      <link>https://blog.hankmo.com/rust-learning-07-slices/</link>
      <pubDate>Sun, 08 Sep 2024 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-07-slices/</guid>
      <description>Slice 是 Rust 中一种特殊的引用，它引用的不是整个对象，而是一段连续的内存序列。它是处理字符串和数组的神器。</description>
    </item>
    <item>
      <title>Rust 学习笔记 06：引用与借用 (References &amp; Borrowing) 下</title>
      <link>https://blog.hankmo.com/rust-learning-06-references/</link>
      <pubDate>Sun, 25 Aug 2024 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-06-references/</guid>
      <description>如果说所有权是独裁统治，那借用就是临时租赁。Rust 通过严格的借用规则，在编译期就扼杀了数据竞争 (Data Race)。</description>
    </item>
    <item>
      <title>Rust 学习笔记 05：所有权 (Ownership) 上</title>
      <link>https://blog.hankmo.com/rust-learning-05-ownership/</link>
      <pubDate>Sat, 20 Jul 2024 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-05-ownership/</guid>
      <description>Rust 最独特的特性，没有之一。它是内存安全的基石，也是让无数新手挠头的拦路虎。忘记 GC，忘记手动 managed，拥抱所有权吧。</description>
    </item>
    <item>
      <title>Rust 学习笔记 04：控制流程</title>
      <link>https://blog.hankmo.com/rust-learning-04-control-flow/</link>
      <pubDate>Sat, 15 Jun 2024 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-04-control-flow/</guid>
      <description>如果说函数是积木，那控制流程就是粘合剂。Rust 的 `if` 不仅仅是判断，它还是一个表达式。而 `loop` 循环甚至可以当函数用（返回值）。</description>
    </item>
    <item>
      <title>Rust 学习笔记 03：函数</title>
      <link>https://blog.hankmo.com/rust-learning-03-functions/</link>
      <pubDate>Sat, 18 May 2024 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-03-functions/</guid>
      <description>Rust 的函数设计不仅关乎代码组织，更深刻影响了语言的表达力。表达式与语句的区别，是理解 Rust 这一关的钥匙。</description>
    </item>
    <item>
      <title>Rust 学习笔记 02：变量与可变性</title>
      <link>https://blog.hankmo.com/rust-learning-02-variables/</link>
      <pubDate>Fri, 12 Apr 2024 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-02-variables/</guid>
      <description>Rust 的变量默认不可变？这简直是对 Go 开发者认知的最大挑战。但习惯之后，你会发现这才是世界的真相。</description>
    </item>
    <item>
      <title>Rust 学习笔记 01：简介与环境搭建</title>
      <link>https://blog.hankmo.com/rust-learning-01-intro-setup/</link>
      <pubDate>Tue, 05 Mar 2024 00:00:00 +0000</pubDate>
      <guid>https://blog.hankmo.com/rust-learning-01-intro-setup/</guid>
      <description>Why Rust? Why now? 从 Go 开发者的视角，开启 Rust 的学习之旅。</description>
    </item>
  </channel>
</rss>
