Rust In Practice is an ultimate fastpaced guide for anyone looking to become a practitioner of the rust programming from day 1. This book covers everything from the basics of Rust programming to building robust and efficient applications.
Rust In Practice A Programmers Guide to Build Rust Programs, Test Applications and Create Cargo Packages Rustacean Team Copyright © 2023GitforGits All rights reserved ISBN: 978-8196228507 Contents Preface Chapter 1: Understanding Why Rust! Why to Learn Rust Programming? Rust Over Other Programming Languages? Rust Over Python Rust Over C++ and Go Basics of Rust Syntax Program ‘Hello world’ My First Program: Creating a Calculator Chapter 2: Getting Ready with Rust Environment Setting Up Rust on Windows Setting Up Rust on Linux Installing Crates and Cargo on Windows Installing Crates and Cargo on Linux Installing Visual Studio Code on Window Installing Visual Studio Code on Linux Chapter 3: Most Essentials of Rust Variables Constants Constants Vs Immutable Variables Necessity of Constant Against Variables Shadowing Vs Mutability Functions Types of Functions In Rust Writing a Rust Function Coding a Function with an Iterator Passing Function As Arguments Nested Function (Function Within Function) Built-In Functions Control Flow If Statements Loop Statements While Statements For Statements Match Expression Understanding Traits Types of Traits Implement Traits Do’s and Don'ts of Using Trait Unions Types of Unions Implementing Unions Chapter 4: Structs Understanding Structs Types of Structs Writing Program Using Struct Custom Structs Writing Custom Struct Program Writing a Nested Structs Struct Inheritance In Rust Do’s and Don'ts of Struct Chapter 5: Enums and Pattern Matching Defining Enum Pattern Matching Advantage of Enum and Pattern Matching Writing a Program For Enum From Scratch Advanced Aspects of ‘match’ Expression Using Control Flow Do's and Don'ts of Enum & Pattern Matching Chapter 6: Exploring Ownership and Borrowing Concept of Ownership Characteristics of Ownership