Book description
Learn to program with Rust 2021 Edition, in an easy, step-by-step manner on Unix, the Linux shell, macOS, and the Windows command line. As you read this book, you’ll build on the knowledge you gained in previous chapters and see what Rust has to offer.
Beginning Rust starts with the basics of Rust, including how to name objects, control execution flow, and handle primitive types. You’ll see how to do arithmetic, allocate memory, use iterators, and handle input/output. Once you have mastered these core skills, you’ll work on handling errors and using the object-oriented features of Rust to build robust Rust applications in no time.
Only a basic knowledge of programming in C or C++ and familiarity with a command console are required. After reading this book, you’ll be ready to build simple Rust applications.
What You Will Learn
- Get started programming with Rust
- Understand heterogeneous data structures and data sequences
- Define functions, generic functions, structs, and more
- Work with closures, changeable strings, ranges and slices Use traits and learn about lifetimes
Who This Book Is For
Those who are new to Rust and who have at least some prior experience with programming in general: some C/C++ is recommended particularly.Table of contents
- Cover
- Front Matter
- 1. Getting Started
- 2. Doing Arithmetic and Writing More Code
- 3. Naming Objects
- 4. Controlling Execution Flow
- 5. Using Data Sequences
- 6. Using Primitive Types
- 7. Enumerations and Matching
- 8. Using Heterogeneous Data Structures
- 9. Defining Functions
- 10. Defining Generic Functions and Types
- 11. Allocating Memory
- 12. Data Implementation
- 13. Defining Closures
- 14. Using Changeable Strings
- 15. Ranges and Slices
- 16. Using Iterators
- 17. Input/Output and Error Handling
- 18. Data Encapsulation
- 19. Using Traits
- 20. Object-Oriented Programming
- 21. Standard Library Collections
- 22. Ownership, Moves, and Copies
- 23. Borrowing and Lifetimes
- 24. More About Lifetimes
- Back Matter
Product information
- Title: Beginning Rust: Get Started with Rust 2021 Edition
- Author(s):
- Release date: January 2022
- Publisher(s): Apress
- ISBN: 9781484272084
You might also like
book
The Rust Programming Language (Covers Rust 2018)
The Rust Programming Language is the official book on Rust: an open source systems programming language …
book
Hands-on Rust
Rust is an exciting new programming language combining the power of C with memory safety, fearless …
video
Rust for Absolute Beginners: Learn Rust in 4 Hours
Rust is a language that is made for the future. It brings in lessons from every …
video
Intro to Rust
Rust is a systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety. …