猜你喜欢
Rust编程(影印版)(英文版)

Rust编程(影印版)(英文版)

书籍作者:吉姆·布兰迪詹森·奥兰多夫 ISBN:9787564177331
书籍语言:简体中文 连载状态:全集
电子书格式:pdf,txt,epub,mobi,azw3 下载次数:5310
创建日期:2021-02-14 发布日期:2021-02-14
运行环境:PC/Windows/Linux/Mac/IOS/iPhone/iPad/Kindle/Android/安卓/平板
下载地址
内容简介
Rust是一种新的系统编程语言,兼具C和C++的性能与底层控制,以及内存安全与线程安全。Rust的现代和灵活类型保证你的程序没有间接引用空指针、重复释放、迷途指针以及类似bug,都在编译时态,没有运行时开销。在多线程代码中,Rust在编译时捕获数据竞争,使得并行更易于使用。
  《Rust编程(影印版 英文版)》由两位富有经验的系统程序员吉姆·布兰迪、詹森·奥兰多夫撰写,介绍了Ru5t如何兼顾性能和安全,以及怎样才能利用这个特性。
《Rust编程(影印版)(英文版)》电子书免费下载

pdf下载 txt下载 epub下载 mobi下载 azw3下载

目录
Preface
1. Why Rust?
Type Safety

2. A Tour of Rust
Downloading and Installing Rust
A Simple Function
Writing and Running Unit Tests
Handling Command-Line Arguments
A Simple Web Server
Concurrency
What the Mandelbrot Set Actually Is
Parsing Pair Command-Line Arguments
Mapping from Pixels to Complex Numbers
Plotting the Set
Writing Image Files
A Concurrent Mandelbrot Program
Running the Mandelbrot Plotter
Safety Is Invisible

3. Basic Tvpes
Machine Types
Integer Types
Floating-Point Types
The bool Type
Characters
Tuples
Pointer Types
References
Boxes
Raw Pointers
Arrays, Vectors, and Slices
Arrays
Vectors
Building Vectors Element by Element
Slices
String Types
String Literals
Byte Strings
Strings in Memory
String
Using Strings
Other String-Like Types
Beyond the Basics

4. Ownership
Ownership
Moves
More Operations That Move
Moves and Control Flow
Moves and Indexed Content
Copy Types: The Exception to Moves
Rc and Arc: Shared Ownership

5. References
References as Values
Rust References Versus C++ References
Assigning References
References to References
Comparing References
References Are Never Null
Borrowing References to Arbitrary Expressions
References to Slices and Trait Objects
Reference Safety
Borrowing a Local Variable
Receiving References as Parameters
Passing References as Arguments
Returning References
Structs Containing References

6. Expressions
7. Error Handing
8. Crates and modules
9. Structs
10. Enums and patterns
11. Traits and generics
12. Operator overloading
13. Utility traits
14 Cloures
15. Iterators
16. Collections
17. Strings and text
18. Input and Output
19. Concurrency
20. Nacros
21. Unsafe code
Index