全部商品分类

您现在的位置: 全部商品分类 > 电子电脑 > 计算机技术 > 程序与语言

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

  • 定价: ¥118
  • ISBN:9787564177331
  • 开 本:16开 平装
  •  
  • 折扣:
  • 出版社:东南大学
  • 页数:598页
  • 作者:(美)吉姆·布兰迪...
  • 立即节省:
  • 2018-07-01 第1版
  • 2018-07-01 第1次印刷
我要买:
点击放图片

导语

  

内容提要

  

    Rust是一种新的系统编程语言,兼具C和C++的性能与底层控制,以及内存安全与线程安全。Rust的现代和灵活类型保证你的程序没有间接引用空指针、重复释放、迷途指针以及类似bug,都在编译时态,没有运行时开销。在多线程代码中,Rust在编译时捕获数据竞争,使得并行更易于使用。
    《Rust编程(影印版)(英文版)》由两位富有经验的系统程序员吉姆·布兰迪、詹森·奥兰多夫撰写,介绍了Ru5t如何兼顾性能和安全,以及怎样才能利用这个特性。

目录

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