Rc , the Reference Counted Smart Pointer Using Rc to Share Data Cloning an Rc Increases the Reference Count Rc , the Reference Counted Smart Pointer In the majority of c...
Rc<T> , the Reference Counted Smart Pointer Using Rc<T> to Share Data Cloning an Rc<T> Increases the Reference Count Rc<T> , the Reference Counted Smart Pointer In the m...
Unsafe Rust Unsafe Superpowers Dereferencing a Raw Pointer Calling an Unsafe Function or Method Creating a Safe Abstraction over Unsafe Code Using extern Functions to Call Ext...
RefCell and the Interior Mutability Pattern Enforcing Borrowing Rules at Runtime with RefCell Interior Mutability: A Mutable Borrow to an Immutable Value A Use Case for Interi...
Closures: Anonymous Functions that Capture Their Environment Capturing the Environment with Closures Closure Type Inference and Annotation Capturing References or Moving Ownershi...
控制流 if 表达式 使用 else if 处理多重条件 在 let 语句中使用 if 使用循环重复执行 使用 loop 重复执行代码 从循环返回值 循环标签:在多个循环之间消除歧义 while 条件循环 使用 for 遍历集合 总结 控制流 ch03-05-control-flow.md comm...
Defining and Instantiating Structs Using the Field Init Shorthand when Variables and Fields Have the Same Name Creating Instances From Other Instances With Struct Update Syntax U...