The Rust Programming Language (Covers Rust 2018)
Authors: Steve Klabnik – Carol Nichols
ISBN-10: 1718500440
ISBN-13: 9781718500440
Released: 2019-08-12
Print Length 页数: 560 pages
Book Description
The official book on the Rust programming language,written by the Rust development team at the Mozilla Foundation,fully updated for Rust 2018.
The Rust Programming Language is the official,definitive guide to Rust,a hugely popular,community-supported programming language. This is the second edition of the improved version of the free online Rust book,so well-loved in the Rust community that it is simply referred to as “the Book”.
Programmers love Rust because it allows them to write powerful code efficiently,without the risk of crashes and errors common in languages like C and C++. This book will show readers how to use Rust’s robust type system to keep programs memory-safe and speedy,and make the most of the Cargo package manager that brings the pieces of a program together. The reader will learn all about Rust’s ownership rules,which lie at the heart of Rust’s reliability and crash-resistant compiling.
The Rust Programming Language covers everything from basic concepts like variable bindings,control flow,functions,and error handling,to more advanced topics,such as crates,generics,concurrency,and the nitty gritty of Rust’s type system. With improved organization,hands-on features,and a more tutorial-oriented style,this version offers a vast improvement over the original.
The second edition also provides an entirely new chapter on macros and an expanded chapter on crates,two key aspects of Rust that make it so popular. Readers will also find extra appendices on Rust development tools and Rust versions.
Contents in Detail
FOREWORD by Nicholas Matsakis and Aaron Turon
PREFACE
ACKNOWLEDGMENTS
INTRODUCTION
1 GETTING STARTED
2 PROGRAMMING A GUESSING GAME
3 COMMON PROGRAMMING CONCEPTS
4 UNDERSTANDING OWNERSHIP
5 USING STRUCTS TO STRUCTURE RELATED DATA
6 ENUMS AND PATTERN MATCHING
7 MANAGING GROWING PROJECIS WITH PACKAGES,CRATES,AND MODULES
8 COMMON COLLECTIONS
9 ERROR HANDLING
10 GENERIC TYPES,TRAITS,AND LIFETIMES
11 WRITING AUTOMATED TESTS
12AN IVO PROJECT: BUILDING A COMMAND LINE PROGRAM
13 FUNCTIONAL LANGUAGE FEATURES: ITERATORS AND CLOSURES
14 MORE ABOUT CARGO AND CRATES. IO
15 SMART POINTERS
16 FEARLESS CONCURRENCY
17 OBJECT-ORIENTED PROGRAMMING FEATURES OF RUST
18 PATTERNS AND MATCHING
19 ADVANCED FEATURES
20 FINAL PROJECT: BUILDING A MULTITHREADED WEB SERVER
A KEYWORDS
B OPERATORS AND SYMBOLS
CDERIVABLE TRAITS
D USEFUL DEVELOPMENT TOOLS
EEDITIONS
INDEX
The Rust Programming Language 9781718500440.zip