Effective Rust: 35 Specific Ways to Improve Your Rust Code

Drysdale, David

  • 出版商: O'Reilly
  • 出版日期: 2024-05-07
  • 售價: $2,100
  • 貴賓價: 9.5$1,995
  • 語言: 英文
  • 頁數: 295
  • 裝訂: Quality Paper - also called trade paper
  • ISBN: 1098151402
  • ISBN-13: 9781098151409
  • 相關分類: Rust 語言
  • 海外代購書籍(需單獨結帳)

買這商品的人也買了...

商品描述

Rust's popularity is growing, due in part to features like memory safety, type safety, and thread safety. But these same elements can also make learning Rust a challenge, even for experienced programmers. This practical guide helps you make the transition to writing idiomatic Rust--while also making full use of Rust's type system, safety guarantees, and burgeoning ecosystem.

If you're a software engineer who has experience with an existing compiled language, or if you've struggled to convert a basic understanding of Rust syntax into working programs, this book is for you. By focusing on the conceptual differences between Rust and other compiled languages, and by providing specific recommendations that programmers can easily follow, Effective Rust will soon have you writing fluent Rust, not just badly translated C++.

  • Understand the structure of Rust's type system
  • Learn Rust idioms for error handling, iteration, and more
  • Discover how to work with Rust's crate ecosystem
  • Use Rust's type system to express your design
  • Win fights with the borrow checker
  • Build a robust project that takes full advantage of the Rust tooling ecosystem

商品描述(中文翻譯)

Rust的受歡迎程度正在增加,部分原因是由於其具有內存安全性、類型安全性和線程安全性等特點。但是,這些元素同樣也使得學習Rust對於有經驗的程序員來說是一個挑戰。這本實用指南將幫助您過渡到寫作符合Rust慣用法的程式碼,同時充分利用Rust的類型系統、安全保證和不斷發展的生態系統。

如果您是一位有經驗的軟體工程師,具有現有編譯語言的經驗,或者曾經努力將對Rust語法的基本理解轉化為可運行的程式碼,那麼這本書適合您。通過專注於Rust與其他編譯語言之間的概念差異,並提供程序員可以輕鬆遵循的具體建議,《Effective Rust》將很快讓您寫出流利的Rust程式碼,而不僅僅是翻譯不好的C++程式碼。

本書的內容包括:
- 理解Rust類型系統的結構
- 學習Rust的錯誤處理、迭代等慣用法
- 探索如何使用Rust的crate生態系統
- 利用Rust的類型系統來表達設計
- 與借用檢查器進行鬥爭
- 構建一個充分利用Rust工具生態系統的強大專案