相關主題
商品描述
Get "close to the machine" by programming with Rust! Discover how to effectively use this low-level language to create fast and efficient code. Set up Rust, compile your first program, and learn the language essentials: variables, functions, conditionals, and more. Walk through Rust's unique ownership model and modular system, and then move on to more complex features, from flexibility and abstraction to web programming and text processing. Numerous code examples and exercises make this your go-to practical resource for Rust!
In this book, you'll learn about:
a. Language Basics
Take your first steps with Rust! After installation and setup in Visual Studio Code, walk through the language building blocks, from variables to functions to enums. Learn how to implement ownership, define types, test your code, and more.
b. Intermediate Programming
Expand your toolkit for Rust programming! Write flexible code with generics and traits, incorporate features of functional programming, manage memory, implement data structures, and handle structs.
c. Advanced Topics
Become a Rust master! Tackle advanced topics, including sized and unsized types, concurrency via threading, the powerful macro system, web programming, text processing, and file and directory handling.
Highlights include:
1) Language basics
2) Control flow
3) Ownership
4) Structs and enums
5) Generics and traits
6) Modular structure
7) Memory management
8) Testing
9) Concurrency
10) Functional programming
11) Web programming
12) Text processing and file handling
商品描述(中文翻譯)
透過 Rust 編程,讓你「更接近機器」!探索如何有效地使用這種低階語言來創建快速且高效的程式碼。設置 Rust,編譯你的第一個程式,並學習語言的基本要素:變數、函數、條件語句等。深入了解 Rust 獨特的擁有權模型和模組系統,然後進一步學習更複雜的特性,從靈活性和抽象到網頁編程和文本處理。大量的程式碼範例和練習使這本書成為你學習 Rust 的實用資源!
在這本書中,你將學到:
a. 語言基礎
開始你的 Rust 之旅!在 Visual Studio Code 中安裝和設置後,逐步了解語言的基本構建塊,從變數到函數再到列舉(enums)。學習如何實現擁有權、定義類型、測試你的程式碼等。
b. 中級編程
擴展你的 Rust 編程工具包!使用泛型(generics)和特徵(traits)編寫靈活的程式碼,融入函數式編程的特性,管理記憶體,實現資料結構,並處理結構體(structs)。
c. 高級主題
成為 Rust 大師!挑戰高級主題,包括有大小(sized)和無大小(unsized)類型、透過執行緒(threading)實現的並發性、強大的宏系統、網頁編程、文本處理以及檔案和目錄處理。
重點包括:
1) 語言基礎
2) 控制流程
3) 擁有權
4) 結構體和列舉
5) 泛型和特徵
6) 模組結構
7) 記憶體管理
8) 測試
9) 並發性
10) 函數式編程
11) 網頁編程
12) 文本處理和檔案處理