Beginning Rust: From Novice to Professional

Carlo Milanesi

相關主題

商品描述

Learn to program with Rust in an easy, step-by-step manner on Unix, Linux shell, macOS and the Windows command line.  As you read this book, you’ll build on the knowledge you gained in previous chapters and see what Rust has to offer.  
 
Beginning Rust starts with the basics of Rust, including how to name objects, control execution flow, and handle primitive types. You’ll see how to do arithmetic, allocate memory, use iterators, and handle input/output. Once you have mastered these core skills, you’ll work on handling errors and using the object-oriented features of Rust to build robust Rust applications in no time.
 
Only a basic knowledge of programming is required, preferably in C or C++. To understand this book, it's enough to know what integers and floating-point numbers are, and to distinguish identifiers from string literals.
 
After reading this book, you'll be ready to build Rust applications.  
 
What You'll Learn
  • Get started programming with Rust
  • Understand heterogeneous data structures and data sequences
  • Define functions, generic functions, structs, and more
  • Work with closures, changeable strings, ranges and slices
  • Use traits and learn about lifetimes  
 
Who This Book Is For 
 
Those who are new to Rust and who have at least some prior experience with programming in general: some C/C++ is recommended particularly.
 
 

商品描述(中文翻譯)

學習使用Rust程式語言的書籍,以Unix、Linux shell、macOS和Windows命令行為基礎,以簡單、逐步的方式進行。當您閱讀本書時,您將在之前章節所獲得的知識基礎上進一步學習Rust的特點。

《Beginning Rust》從Rust的基礎知識開始,包括如何命名對象、控制執行流程和處理基本類型。您將學習如何進行算術運算、分配內存、使用迭代器和處理輸入/輸出。一旦掌握了這些核心技能,您將學習處理錯誤並使用Rust的面向對象特性來快速構建強大的Rust應用程序。

只需要基本的編程知識,最好是C或C++。為了理解本書,只需要知道什麼是整數和浮點數,以及如何區分標識符和字符串文字。

閱讀完本書後,您將準備好開始構建Rust應用程序。

《本書的學習目標》

- 開始使用Rust進行編程
- 理解異構數據結構和數據序列
- 定義函數、泛型函數、結構等
- 使用閉包、可變字符串、範圍和切片
- 使用特性並了解生命周期

《本書適合對象》

對Rust新手和具有一定編程經驗的人來說,特別是建議具有一些C/C++經驗的人。