
Haben Sie noch nichts passendes gefunden? Stöbern Sie durch unser komplettes Sortiment.
Oder melden Sie sich an bzw. registrieren Sie sich.


Beschreibung
Get "close to the machine" by programming with Rust! Discover how to effectively use this low-level language to create fast and efficient code. Set up Rust, compile your first program, and learn the language essentials: variables, functions, conditi...
Get "close to the machine" by programming with Rust! Discover how to effectively use this low-level language to create fast and efficient code. Set up Rust, compile your first program, and learn the language essentials: variables, functions, conditionals, and more. Walk through Rust's unique ownership model and modular system, and then move on to more complex features, from flexibility and abstraction to web programming and text processing. Numerous code examples and exercises make this your go-to practical resource for Rust!
In this book, you'll learn about:
a. Language Basics
Take your first steps with Rust! After installation and setup in Visual Studio Code, walk through the language building blocks, from variables to functions to enums. Learn how to implement ownership, define types, test your code, and more.
b. Intermediate Programming
Expand your toolkit for Rust programming! Write flexible code with generics and traits, incorporate features of functional programming, manage memory, implement data structures, and handle structs.
c. Advanced Topics
Become a Rust master! Tackle advanced topics, including sized and unsized types, concurrency via threading, the powerful macro system, web programming, text processing, and file and directory handling.
Highlights include:
Explore advanced concepts, including concurrency, testing, and sizing
Autorentext
Dr. Nouman Azam is an associate professor of computer science at the National University of Computer and Emerging Sciences. He also teaches online programming courses about Rust and MATLAB, and reaches a community of more than 50,000 students. He received his PhD in computer science from the University of Regina in Canada. Prior to that, he completed his MSc in computer software engineering from the National University of Sciences and Technology, Pakistan, and his BSc in computer sciences from the National University of Computer and Emerging Sciences, Pakistan. Dr. Azam's research interests include game theory, rough sets, conflict analysis, and group decision making.
Klappentext
Get "close to the machine" by programming with Rust! Discover how to effectively use this low-level language to create fast and efficient code. Set up Rust, compile your first program, and learn the language essentials: variables, functions, conditionals, and more. Walk through Rust's unique ownership model and modular system, and then move on to more complex features, from flexibility and abstraction to web programming and text processing. Numerous code examples and exercises make this your go-to practical resource for Rust!
In this book, you'll learn about:
a. Language Basics
Take your first steps with Rust! After installation and setup in Visual Studio Code, walk through the language building blocks, from variables to functions to enums. Learn how to implement ownership, define types, test your code, and more.
b. Intermediate Programming
Expand your toolkit for Rust programming! Write flexible code with generics and traits, incorporate features of functional programming, manage memory, implement data structures, and handle structs.
c. Advanced Topics
Become a Rust master! Tackle advanced topics, including sized and unsized types, concurrency via threading, the powerful macro system, web programming, text processing, and file and directory handling.
Highlights include:
Zusammenfassung
Get close to the machine by programming with Rust! Discover how to effectively use this low-level language to create fast and efficient code. Set up Rust, compile your first program, and learn the language essentials: variables, functions, conditionals, and more. Walk through Rust's unique ownership model and modular system, and then move on to more complex features, from flexibility and abstraction to web programming and text processing. Numerous code examples and exercises make this your go-to practical resource for Rust!
In this book, you'll learn about:
a. Language Basics
Take your first steps with Rust! After installation and setup in Visual Studio Code, walk through the language building blocks, from variables to functions to enums. Learn how to implement ownership, define types, test your code, and more.
b. Intermediate Programming
Expand your toolkit for Rust programming! Write flexible code with generics and traits, incorporate features of functional programming, manage memory, implement data structures, and handle structs.
c. Advanced Topics
Become a Rust master! Tackle advanced topics, including sized and unsized types, concurrency via threading, the powerful macro system, web programming, text processing, and file and directory handling.
Highlights include:
Inhalt
... Preface ... 19
... The Purpose of This Book ... 19
... The Structure of This Book ... 19
... Target Audience ... 22
... Acknowledgments ... 22
PART I ... Basic Programming with Rust ... 25
1 ... Introduction ... 27
1.1 ... Installing Rust and Its Web-Based Environment ... 27
1.2 ... Running and Compiling Your First Program ... 30
1.3 ... Visual Studio Code Settings ... 32
1.4 ... Making the Most of This Book ... 34
1.5 ... Summary ... 36
2 ... Variables, Data Types, and Functions ... 39
2.1 ... Variables ... 39
2.2 ... Data Types ... 44
2.3 ... Functions ... 49
2.4 ... Code Blocks ... 51
2.5 ... Practice Exercises ... 52
2.6 ... Solutions ... 56
2.7 ... Summary ... 59
3 ... Conditionals and Control Flow ... 61
3.1 ... Conditionals ... 61
3.2 ... Control Flow ... 66
3.3 ... Comments, Outputs, and Inputs ... 68
3.4 ... Practice Exercises ... 71
3.5 ... Solutions ... 74
3.6 ... Summary ... 78
4 ... Ownership ... 79
4.1 ... Ownership Basics ... 79
4.2 ... Ownership in Functions ... 84
4.3 ... Borrowing Basics ... 87
4.4 ... Borrowing in Functions ... 92
4.5 ... Dereferencing ... 97
4.6 ... Mutable and Immutable Binding of References ... 98
4.7 ... Practice Exercises ... 101
4.8 ... Solutions ... 104
4.9 ... Summary ... 106
5 ... Custom and Library-Provided Useful Types ... 107
5.1 ... Structs ... 107
5.2 ... Enums ... 117
5.3 ... Option ... 121
5.4 ... Result ... 125
5.5 ... HashMaps ... 129
5.6 ... HashSets ... 131
5.7 ... Practice Exercises ... 133
5.8 ... Solutions ... 137
5.9 ... Summary ... 142
6 ... Organizing Your Code ... 143
6.1 ... Code Organization ... 143
6.2 ... Module Basics ... 146
6.3 ... Visualizing and Organizing Modules ... 157
6.4 ... Re-Exporting and Privacy ... 164
6.5 ... Using External Dependencies ... 170
6.6 ... Publishing Your Crate ... 173
…
