Rust Quick Start Guide: The easiest way to learn Rust programming
暫譯: Rust 快速入門指南:學習 Rust 程式設計的最簡單方法
Daniel Arbuckle
- 出版商: Packt Publishing
- 出版日期: 2018-10-31
- 售價: $1,460
- 貴賓價: 9.5 折 $1,387
- 語言: 英文
- 頁數: 180
- 裝訂: Paperback
- ISBN: 1789616700
- ISBN-13: 9781789616705
-
相關分類:
Rust 語言、程式語言
海外代購書籍(需單獨結帳)
商品描述
Get familiar with writing programs in the trending new systems programming language that brings together the powerful performance of low-level languages with the advanced features like thread safety in multi-threaded code
Key Features
- Learn the semantics of Rust, which can be significantly different from other programming languages
- Understand clearly how to work with the Rust compiler which strictly enforces rules that may not be obvious
- Examples and insights beyond the Rust documentation
Book Description
Rust is an emerging programming language applicable to areas such as embedded programming, network programming, system programming, and web development. This book will take you from the basics of Rust to a point where your code compiles and does what you intend it to do!
This book starts with an introduction to Rust and how to get set for programming, including the rustup and cargo tools for managing a Rust installation and development workflow.
Then you'll learn about the fundamentals of structuring a Rust program, such as functions, mutability, data structures, implementing behavior for types, and many more. You will also learn about concepts that Rust handles differently from most other languages.
After understanding the Basics of Rust programming, you will learn about the core ideas, such as variable ownership, scope, lifetime, and borrowing. After these key ideas, you will explore making decisions in Rust based on data types by learning about match and if let expressions. After that, you'll work with different data types in Rust, and learn about memory management and smart pointers.
What you will learn
- Install Rust and write your first program with it
- Understand ownership in Rust
- Handle different data types
- Make decisions by pattern matching
- Use smart pointers
- Use generic types and type specialization
- Write code that works with many data types
- Tap into the standard library
Who this book is for
This book is for people who are new to Rust, either as their first programming language or coming to it from somewhere else. Familiarity with computer programming in any other language will be helpful in getting the best out of this book.
Table of Contents
- Getting Ready
- Basics of the Rust Language
- The Big Ideas–Ownership and Borrowing
- Making Decisions by Pattern Matching
- One Data Type Representing Multiple Kinds of Data
- Heap Memory and Smart Pointers
- Generic Types
- Important Standard Traits
商品描述(中文翻譯)
熟悉在這個新興的系統程式語言中編寫程式,該語言結合了低階語言的強大性能與多執行緒程式碼中的進階特性,如執行緒安全性
主要特點
- 學習 Rust 的語義,這可能與其他程式語言有顯著不同
- 清楚了解如何使用 Rust 編譯器,該編譯器嚴格執行可能不明顯的規則
- 提供超越 Rust 文檔的範例和見解
書籍描述
Rust 是一種新興的程式語言,適用於嵌入式程式設計、網路程式設計、系統程式設計和網頁開發等領域。本書將帶您從 Rust 的基礎知識開始,直到您的程式碼能夠編譯並執行您所期望的功能!
本書首先介紹 Rust 及如何準備進行程式設計,包括用於管理 Rust 安裝和開發工作流程的 rustup 和 cargo 工具。
接著,您將學習如何結構化 Rust 程式的基本概念,例如函數、可變性、資料結構、為類型實現行為等。您還將了解 Rust 與大多數其他語言處理的不同概念。
在理解 Rust 程式設計的基礎後,您將學習核心概念,例如變數擁有權、範圍、生命週期和借用。在這些關鍵概念之後,您將探索如何根據資料類型在 Rust 中做出決策,學習 match 和 if let 表達式。之後,您將在 Rust 中處理不同的資料類型,並學習記憶體管理和智慧指標。
您將學到什麼
- 安裝 Rust 並編寫您的第一個程式
- 理解 Rust 中的擁有權
- 處理不同的資料類型
- 通過模式匹配做出決策
- 使用智慧指標
- 使用泛型和類型專門化
- 編寫能夠處理多種資料類型的程式碼
- 利用標準庫
本書適合誰
本書適合對 Rust 感興趣的人,無論是作為他們的第一種程式語言,還是從其他語言轉向 Rust。對任何其他語言的電腦程式設計有一定的熟悉度將有助於您充分利用本書。
目錄
- 準備工作
- Rust 語言基礎
- 重要概念–擁有權與借用
- 通過模式匹配做出決策
- 一種資料類型表示多種資料
- 堆記憶體與智慧指標
- 泛型類型
- 重要的標準特徵