وبلاگ بلیان

Programming with Rust

معرفی کتاب «Programming with Rust» نوشتهٔ Marshall, Donis، منتشرشده توسط نشر Addison-Wesley Professional در سال 2024. این کتاب در فرمت epub، زبان انگلیسی ارائه شده است. «Programming with Rust» در دستهٔ بدون دسته‌بندی قرار دارد.

Make Rust a key tool in your arsenal, and access one of the industry's fastest-growing areas of opportunity. Rust's exciting innovations have made it the most loved programming language in Stack Overflow's influential survey for five straight years–but its steep learning curve has made many other developers reluctant to dive in. Now, with a growing commitment to Rust from many of the world's leading development organizations, it's the perfect time to start–especially now that there's an up-to-date, accessible, example-rich book to guide you. In Programming with Rust, long-time enterprise developer Donis Marshall has made Rust easier to understand than ever, with a guide expertly organized into short, bite-sized chapters that bring you up-to-speed fast. Written for developers at all levels, Marshall starts with the absolute basics, and thoroughly demystifies the Rust technical advances that make it so attractive for next-generation development. Everything's here, from types and assignments to ownership, lifetimes, traits, and crates. Marshall even offers indispensable expert advice for unit testing, handling unsafe code, interoperating with legacy code bases, and using Rust's increasingly robust tools. • Contains short, easy-to-consume chapters • Clearly illustrates innovative features such as lifetimes, ownerships, and patterns • Practical, focused, complete, and up-to-date • Written for newcomers and professional developers alike More than just a new language, Rust represents a philosophical shift in how you code. In Programming with Rust, you'll master both the techniques and the mindset. Cover Page About This eBook Halftitle Page Title Page Copyright Page Pearson’s Commitment to Diversity, Equity, and Inclusion Contents About the Author 1. Introduction to Rust Introduction Features Rust Terminology Tools Summary 2. Getting Started Preliminaries Rust and Windows Installing Rust Advanced Rustup “Hello, World” Compile and Run Cargo Library Comments Published Crates Main Function Command-Line Arguments Summary 3. Variables Terminology Variables Primitives Integer Types Overflow Notations Floating Point Types Floating Point Constants Infinity NaN Numeric Ranges Casting Boolean Types Char Pointers Operators Summary 4. Strings Str String Summary 5. Console Print Positional Arguments Variable Arguments Named Arguments Padding, Alignment, and Precision Base Developer Facing Write! Macro Display Trait Debug Trait Format! Macro Console Read and Write Summary 6. Control Flow The if Expression The while Expression The for Expression The loop Expression The loop Label The Iterator Trait Summary 7. Collections Arrays Vectors HashMap Summary 8. Ownership Stack and Heap Memory Shallow versus Deep Copy Car Analogy Move Semantics Borrow Copy Semantics Clone Trait Copy Trait Clone Trait Summary 9. Lifetimes Introduction to Lifetimes Function Headers and Lifetimes Lifetime Annotation Lifetime Elision Complex Lifetimes Sharing a Lifetime Static Lifetimes Structs and Lifetimes Methods and Lifetimes Subtyping Lifetimes Anonymous Lifetimes Generics and Lifetimes Summary 10. References Declaration Borrowing Dereferencing Comparing References Reference Notation Reference to Reference Mutability Limits to Multiple Borrowers Summary 11. Functions Function Definition Parameters Function Return Const Functions Nested Functions Function Pointers Function Aliases Summary 12. Error Handling Handling Error Handling The Result Enum The Option Enum Panics Unwrapping Match Pattern for Result and Option Map Rich Errors Custom Errors Summary 13. Structures Alternate Initialization Move Semantics Mutability Methods Self Associated Functions Impl Blocks Operator Overloading Tuple Struct Summary 14. Generics Generic Functions Bounds The where Clause Structs Associated Functions Enums Generic Traits Explicit Specialization Summary 15. Patterns Let Statement Wildcards Complex Patterns Ownership Irrefutable Ranges Multiple Patterns Control Flow Structs Functions Match Expressions Match Guards Summary 16. Closures “Hello, World” Closure Syntax Closed Over Closures as Function Arguments Closures as Function Return Values Implementation of Closures Matrix Example Summary 17. Traits Trait Definition Default Functions Marker Trait Associated Functions Associated Types Extension Methods Fully Qualified Syntax Supertraits Static Dispatch Dynamic Dispatch Enums and Traits Summary 18. Threads 1 Synchronous Function Calls Threads The Thread Type Processor Time Builder Communicating Sequential Process Asynchronous Channel Synchronous Channel Rendezvous Channel The try Methods Store Example Summary 19. Threads 2 Mutex Nonscoped Mutex Mutex Poisoning Reader-Writer Lock Condition Variables Atomic Operations Summary 20. Memory Stacks Static Values The Heap Interior Mutability RefCell OnceCell Summary 21. Macros Tokens Declarative Macros Procedural Macros Summary 22. Interoperability Foreign Function Interface Basic Example Libc Crate Structs Bindgen C Calling Rust Functions Cbindgen Summary 23. Modules Module Items Functions and Modules The crate, super, and self Keywords Legacy Model Summary Index Code Snippets Rust's exciting innovations have made it the most loved programming language in Stack Overflow's influential survey for five straight years--but its steep learning curve has made many other developers reluctant to dive in. Now, with a growing commitment to Rust from many of the world's leading development organizations, it's the perfect time to start--especially now that there's an up-to-date, accessible, example-rich book to guide you. Long-time enterprise developer Donis Marshall has made Rust easier to understand than ever, with a guide expertly organized into short, bite-sized chapters and supported with focused video tutorials that bring you up-to-speed fast. Writing for developers at all levels, Marshall starts with the absolute basics, and thoroughly demystifies the Rust technical advances that make it so attractive for next-generation development. Everything's here, from types and assignments to ownership, lifetimes, traits, and crates. Marshall even offers indispensable expert advice for unit testing, handling unsafe code, interoperating with legacy code bases, and using Rust's increasingly robust tools. More than just a new language, Rust represents a philosophical shift in how you code. With Programming in Rust, you'll master the techniques and the mindset, make Rust a key tool in your arsenal, and access one of the industry's fastest-growing areas of opportunity.
دانلود کتاب Programming with Rust