The Rustonomicon 中文翻译 - Rust 高级和不安全 Rust 编程的黑魔法

The Rustonomicon 中文翻译 - Rust 高级和不安全 Rust 编程的黑魔法

语言 中文 · 章节 63 · 阅读 28586 · 收藏 0 · 评论 0

The Rustonomicon 中文翻译 - Rust 高级和不安全 Rust 编程的黑魔法

共 63 个章节 · 0 条评论
01 The Rustonomicon 02 Safe与Unsafe相遇(Meet Safe and Unsafe) 03 Safe与Unsafe如何交互(How Safe and Unsafe Interact) 04 Unsafe Rust可以做什么(What Unsafe Rust Can Do) 05 使用不安全(Working with Unsafe) 06 Rust中的数据表示(Data Representation in Rust) 07 Rust的表示(repr(Rust)) 08 奇异的Sized Type(Exotically Sized Types) 09 替代表示(Alternative representations) 10 所有权和生命周期(Ownership and Lifetimes) 11 引用(References) 12 别名(Aliasing) 13 生命周期(Lifetimes) 14 生命周期的限制(Limits of Lifetimes) 15 生命周期省略(Lifetime Elision) 16 无限制生命周期(Unbounded Lifetimes) 17 高阶Trait限制(HRTBs)(Higher-Rank Trait Bounds(HRTBs)) 18 子类型和可变性(Subtyping and Variance) 19 删除检查Drop Check) 20 PhantomData(PhantomData) 21 Splitting Borrows(Splitting Borrows) 22 类型转换(Type Conversions) 23 强制转换(Coercions) 24 点运算符(The Dot Operator) 25 类型转换(Casts) 26 Transmutes(Transmutes) 27 使用未初始化的内存(Working With Uninitialized Memory) 28 检查未初始化的内存 (Checked Uninitialized Memory) 29 Drop Flags(Drop Flags) 30 不检查未初始化的内存(Unchecked Uninitialized Memory) 31 基于所有权的资源管理的冒险(The Perils Of Ownership Based Resource Management (OBRM)) 32 构造函数(Constructors) 33 析构函数(Destructors) 34 泄漏(Leaking) 35 展开(Unwinding) 36 异常安全(Exception Safety) 37 中毒(Poisoning) 38 并发和并行(Concurrency and Parallelism) 39 数据竞争和竞争条件(Data Races and Race Conditions) 40 Send和Sync(Send and Sync) 41 原子(Atomics) 42 示例:实现Vec(Example: Implementing Vec) 43 布局(Layout) 44 分配内存(Allocating Memory) 45 推入和弹出(Push and Pop) 46 释放分配(Deallocating) 47 解引用(Deref) 48 插入和移除(Insert and Remove) 49 IntoIter(IntoIter) 50 RawVec(RawVec) 51 Drain(Drain) 52 处理零大小类型(Handling Zero-Sized Types) 53 最终代码(The Final Code) 54 实现Arc和Mutex(Implementing Arc and Mutex) 55 布局(Layout) 56 基本代码(Base Code) 57 Cloning 58 Dropping 59 最终代码 60 实现Arc(Implementing Arc) 61 外部函数接口(Foreign Function Interface) 62 Beneath std(Beneath std) 63 #panic_handler
善良比聪明更重要(评论内容审核后才会显示)
全部评论

RELATED · 延伸阅读

相关书籍