Rust for C++ Programmers
eBook - ePub

Rust for C++ Programmers

Learn how to embed Rust in C/C++ with ease (English Edition)

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Rust for C++ Programmers

Learn how to embed Rust in C/C++ with ease (English Edition)

About this book

Get acquainted with the cutting-edge features in Rust

Key Features
? Get familiar with the essential networking concepts in Rust.
? Explore and work with the basic and advanced features of Rust.
? Learn how to code and build your real-world applications using Rust.

Description
Rust is one of the most loved programming languages among developers. It is rapidly being adopted as the industry moves towards memory-safety systems programming languages. If you want to switch from C/C++ to Rust, this book is for you. "Rust for C++ Programmers" is the perfect guide to help you master the Rust programming language. Beginning with its evolution and comparison to C/C++, the book will help you learn how to install and use the powerful Cargo package manager. The book then covers key topics such as bindings and mutability, ownership, conditionals, loops, functions, structs and enums, and more. The book also explains how to handle errors in Rust. Furthermore, the book explores advanced topics such as smart pointers, concurrency, and even building a desktop application using GTK. By the end of the book, you will be able to build powerful and resilient apps with Rust.

What you will learn
? Create concurrent programs in Rust using threads.
? Learn how to build a desktop app using GTK.
? Understand how and when (not) to use Unsafe Rust.
? Get familiar with the common error handling patterns in Rust.
? Learn how to build a Desktop app using Tauri.

Who this book is for
This book is for programmers who are familiar with C/C++ and are looking to add Rust to their toolbelt.

Table of Contents
1. Introduction to Rust
2. OOP in Structs and Enums
3. Error Handling
4. Project โ€“ Building a CLI App
5. Concurrency in Rust
6. Networking in Rust
7. Project โ€“ GTK App
8. Unsafe Rust and FFI
9. Metaprogramming
10. Project โ€“ StdLib for Mufi
11. Project โ€“ App in Tauri

Frequently asked questions

Yes, you can cancel anytime from the Subscription tab in your account settings on the Perlego website. Your subscription will stay active until the end of your current billing period. Learn how to cancel your subscription.
No, books cannot be downloaded as external files, such as PDFs, for use outside of Perlego. However, you can download books within the Perlego app for offline reading on mobile or tablet. Learn more here.
Perlego offers two plans: Essential and Complete
  • Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
  • Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Both plans are available with monthly, semester, or annual billing cycles.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, weโ€™ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes! You can use the Perlego app on both iOS or Android devices to read anytime, anywhere โ€” even offline. Perfect for commutes or when youโ€™re on the go.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Yes, you can access Rust for C++ Programmers by Mustafif Khan in PDF and/or ePUB format, as well as other popular books in Computer Science & Computer Science General. We have over one million books available in our catalogue for you to explore.

Table of contents

  1. Cover Page
  2. Title Page
  3. Copyright Page
  4. Dedication Page
  5. About the Author
  6. About the Reviewer
  7. Acknowledgement
  8. Preface
  9. Errata
  10. Table of Contents
  11. 1. Introduction to Rust
  12. 2. OOP in Structs and Enums
  13. 3. Error Handling
  14. 4. Project โ€“ Building a CLI App
  15. 5. Concurrency in Rust
  16. 6. Networking in Rust
  17. 7. Project โ€“ GTK App
  18. 8. Unsafe Rust and FFI
  19. 9. Metaprogramming
  20. 10. Project โ€“ StdLib for Mufi
  21. 11. Project โ€“ App in Tauri
  22. Index