Rust Standard Library Cookbook
暫譯: Rust 標準庫食譜
Jan Nils Ferner, Daniel Durante
- 出版商: Packt Publishing
- 出版日期: 2018-03-30
- 售價: $2,010
- 貴賓價: 9.5 折 $1,910
- 語言: 英文
- 頁數: 360
- 裝訂: Paperback
- ISBN: 1788623924
- ISBN-13: 9781788623926
-
相關分類:
Rust 語言、程式語言
海外代購書籍(需單獨結帳)
商品描述
Explore the Rust Standard library and compose algorithms with minimal dependency on external libraries Key Features Develop high-quality, fast, and portable applications by leveraging the power of Rust's Standard library. Practical recipes that will help you work with the Standard library to boost your productivity as a Rust developer. Learn about most relevant external crates to be used along with the Standard library. Book DescriptionMozilla's Rust is gaining much attention with amazing features and a powerful library. This book will take you through varied recipes to teach you how to leverage the Standard library to implement efficient solutions. The book begins with a brief look at the basic modules of the Standard library and collections. From here, the recipes will cover packages that support file/directory handling and interaction through parsing. You will learn about packages related to advanced data structures, error handling, and networking. You will also learn to work with futures and experimental nightly features. The book also covers the most relevant external crates in Rust. By the end of the book, you will be proficient at using the Rust Standard library. What you will learn How to use the basic modules of the library: strings, command line access, and more. Implement collections and folding of collections using vectors, Deque, linked lists, and more. Handle various file types , compressing and decompressing data. Search for files with glob patterns. Implement parsing through various formats such as CSV, TOML, and JSON. Utilize drop trait , the Rust version of destructor. Resource locking with Bilocks. Who this book is forThis book is for developers who would like to explore the power of Rust and learn to use the STL for various functionalities. A basic Rust programming knowledge is assumed.
商品描述(中文翻譯)
探索 Rust 標準庫並以最小依賴於外部庫的方式組合演算法
主要特點
透過利用 Rust 標準庫的強大功能,開發高品質、快速且可攜帶的應用程式。實用的食譜將幫助您使用標準庫來提升作為 Rust 開發者的生產力。了解與標準庫一起使用的最相關的外部 crates。
書籍描述
Mozilla 的 Rust 正在獲得廣泛關注,擁有驚人的特性和強大的庫。本書將帶您通過各種食譜,教您如何利用標準庫來實現高效的解決方案。本書首先簡要介紹標準庫的基本模組和集合。接下來,食譜將涵蓋支持文件/目錄處理和通過解析進行交互的套件。您將學習與高級數據結構、錯誤處理和網絡相關的套件。您還將學習如何使用 futures 和實驗性的 nightly 特性。本書還涵蓋了 Rust 中最相關的外部 crates。到書籍結束時,您將熟練使用 Rust 標準庫。
您將學習
如何使用庫的基本模組:字串、命令行訪問等。使用向量、Deque、鏈表等實現集合和集合的折疊。處理各種文件類型,壓縮和解壓數據。使用 glob 模式搜索文件。通過 CSV、TOML 和 JSON 等各種格式實現解析。利用 drop trait,Rust 版本的析構函數。使用 Bilocks 進行資源鎖定。
本書適合誰
本書適合希望探索 Rust 的力量並學習使用 STL 進行各種功能的開發者。假設讀者具備基本的 Rust 程式設計知識。