Книги и журналы » Компьютерная литература » Программирование (книги)
Rust In Practice / Rust на практикеГод издания: 2023
Автор: Rustacean Team
Издательство: GitforGits
ISBN: 978-8196228507
Язык: Английский
Формат: PDF
Качество: Издательский макет или текст (eBook)
Интерактивное оглавление: Да
Количество страниц: 223
Описание: This book is an ultimate fast-paced 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. Starting with the fundamentals, this book guides you through the syntax and semantics of the Rust language, including its unique ownership model and type system. You'll learn about common data types, control flow, error handling, and more.
As you progress through the book, you'll dive deeper into advanced topics such as building programs, rust libraries and crates, using the standard library, and working with external crates. You'll also learn how to write concurrent and parallel code, take advantage of Rust's built-in testing features, and use popular Rust frameworks and libraries.
The book also provides hands-on examples and exercises to help you practice and apply the concepts you've learned. By the end of this book, you'll have a solid understanding of Rust programming and be well-equipped to start building your own robust and efficient applications. With clear explanations, practical examples, and expert advice, this book will help you get an edge on Rust programming and become proficient in building and testing Rust applications, right from day one.
[hr]
Эта книга — исчерпывающее руководство для всех, кто хочет стать практиком программирования на Rust с первого дня. Эта книга охватывает все, от основ программирования на Rust до создания надежных и эффективных приложений. Начиная с основ, эта книга проведет вас через синтаксис и семантику языка Rust, включая его уникальную модель владения и систему типов. Вы узнаете об общих типах данных, потоке управления, обработке ошибок и многом другом.
По мере прохождения книги вы будете глубже погружаться в более сложные темы, такие как создание программ, библиотеки и крейты, использование стандартной библиотеки и работа с внешними крейтами. Вы также узнаете, как писать параллельный код, пользоваться встроенными функциями тестирования и использовать популярные фреймворки и библиотеки.
Книга также содержит примеры и упражнения, которые помогут вам практиковать и применять изученные концепции. К концу этой книги вы будете иметь четкое представление о программировании на Rust и будете хорошо подготовлены для создания собственных надежных и эффективных приложений. Эта книга с четкими пояснениями, практическими примерами и советами экспертов поможет вам получить преимущество в программировании на Rust и научиться создавать и тестировать приложения с самого первого дня.
[spoiler="Примеры страниц"]

[/spoiler]
[spoiler="Оглавление"]
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
Characteristics of Borrowing
Stack-allocated Variables and References
Applications of Ownership and Borrowing
Libraries adopting Ownership and Borrowing
Chapter 7: Cargo, Crates and Packages
Understanding Cargo
Understanding Crates
Understanding Packages
Creating My First Crate
Build My First Package
Publish The Package
Role of Modules and Paths In Rust
Accessing Cargo Packages
Chapter 8: Cargo Commands
General and Build Commands
Manifest Commands
Package and Publish Commands
Custom Commands
Chapter 9: Using Rust Standard Library
Overview
Std::Collections
Std::Error
Std::Net
Std::Sync
Std::Time
Std::Env
Std::Fmt
Std::Str
Std::Iter
Std::Ops
Std::Fs
Primitive Types
Collections
Macros
Writing Your First Macro
Chapter 10: My First Command Line App (CLI)
Flowchart for Creating CLI Application
Procedure to Build CLI Aplication
Building CLI App: File Sorting Program
Chapter 11: Code Testing of Applications
Types of Software Testing
Run Code Testing on CLI Application
Chapter 12: Smart Pointers & Reference Cycles
Understanding Smart Pointers
Box
Rc
Arc
Weak
Understanding Reference Cycles
Types of Reference Cycles
Creating a Reference Cycle: Between Objects
Creating a Reference Cycle: Between Objects & Closure
Preventing Reference Cycles
[/spoiler]