<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>生命周期 on Mi&amp;Bee Blog</title><link>https://blog.mickeyzzc.tech/tags/%E7%94%9F%E5%91%BD%E5%91%A8%E6%9C%9F/</link><description>Recent content in 生命周期 on Mi&amp;Bee Blog</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>蓝宝石的傻话</managingEditor><lastBuildDate>Fri, 22 May 2026 10:00:00 +0800</lastBuildDate><atom:link href="https://blog.mickeyzzc.tech/tags/%E7%94%9F%E5%91%BD%E5%91%A8%E6%9C%9F/rss.xml" rel="self" type="application/rss+xml"/><item><title>错误处理与生命周期：Result、Option 与编译期借用检查</title><link>https://blog.mickeyzzc.tech/posts/programming/rust-error-handling-lifetimes/</link><pubDate>Fri, 22 May 2026 10:00:00 +0800</pubDate><guid>https://blog.mickeyzzc.tech/posts/programming/rust-error-handling-lifetimes/</guid><description>&lt;p&gt;如果你习惯了 Go 的 &lt;code&gt;if err != nil&lt;/code&gt;，第一次接触 Rust 的错误处理可能会感到困惑。Go 的哲学是显式多返回值，错误只是普通的值。而 Rust 则将错误提升到了类型系统层面——一个可能出错的函数必须在返回类型中显式声明。这种设计带来了零成本抽象，但也引入了初学者最头疼的两个概念：&lt;code&gt;Result&amp;lt;T, E&amp;gt;&lt;/code&gt; 枚举和生命周期标注。&lt;/p&gt;</description></item></channel></rss>