Expand description
第二章:Rust核心概念 2.2 生命周期与借用检查
借用检查相关代码
Functions§
- understand_
lifetime - 理解普通生命周期参数:
- understand_
lifetime_ early_ late_ bound - 说明: 生命周期参数:late bound vs early bound
- understand_
lifetime_ for_ closure - 闭包 与 高阶生命周期
- understand_
lifetime_ hrtb - 示例: 理解 trait对象中的生命周期参数
- understand_
lifetime_ in_ generic_ type - 理解 T vs &T
- understand_
nll - 理解借用检查 NLL
- understand_
scope - 理解词法作用域