Rust学习——TRPL-Part1
The Rust Programming Language
系列文章学习 Part 1
Foreword
宣传的Rust 能力:无论是什么类型的编程工作,Rust都可以助力你走得更远,在许多领域较之前的语言更有自信。
Introduction
Rust gives you the option to control low-level details(such as memory usage) without all the hassle traditionally associated with such control.
Who Rust Is For
- Teams of Developers
- With helpful tool chains
- Cargo, the included dependency manager and build tool, makes adding, compiling, and manageing dependencies painless and consistent across the Rust ecosystem
- Rustfmt ensures a consistent coding style across developers.
- The Rust Language Server powers IDE.
- Students
- Interested in learning about systems concepts.
- Friendly community very welcoming and happy to answer student questions.
- Company
- Open Source Developers
- ...
How to Use This Book
- Chapter 1 explains how to install Rust and write a "Hello, world!" program.
- Chapter 2 is a hands-on introduction to the Rust language. Cover concepts at a high level. Provide additional detail.
- If you want to get your hands dirty right away, Chapter 2 is the place for that
- Chapter 3 covers Rust features similar to those of other programming languages.
- At first may skip.
- Chapter 4 learns about Rust's ownership system.
- Chapter 5 discusses stuct and methods
- Chapter 6 covers enums,
match
expressions, and theif let
control flow construct. You’ll use structs and enums to make custom types in Rust. - Chapter 7 Rust's module system and privacy rules for organizing your code and its public API.
- Chapter 8 discusses some common colloction data structures that the standard library provides(讨论标准库提供的常见数据结构 比如 vectors, strings, and hash maps)
- Chapter 9 explores Rust's error-handling philosophy and techniques.
- Chapter 10 digs into generics, traits and lifetimes, !power to define codes that applies to mutiple types.
- Chapter 11 all about testing
- Chapter 12, we'll build our own implementation of a subset of functionality from
grep
command line tool. A project that we'll use many of the concepts we discussed in the previous chapters. - Chapter 13 explors closures and iterators: features of Rust that come from functional programming languages.
- Chapter 14 examines Cargo in more depth
- Chapter 15 discusses smart pointers that the standard library provides and the traits that enable their functionality.
- Chapter 16...
- Chapter 20, we'll complete a project in which we'll implement a low-level multithreaded web server!
本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!