Table of Contents
Preface
Section 1: Getting to Understand Rust
Chapter 1: An Introduction to Rust from a Python Perspective
Technical requirements
Understanding the differences between Python and Rust
Why fuse Python with Rust?
Passing strings in Rust
Sizing up floats and integers in Rust
Managing data in Rust's vectors and arrays
Replacing dictionaries with hashmaps
Error handling in Rust
Understanding variable ownership
Copy
Move
Immutable borrow
Mutable borrow
Keeping track of scopes and lifetimes
Building structs instead of objects
Metaprogramming with macros instead of decorators
Summary
Questions
Answers
Further reading
Chapter 2: Structuring Code in Rust
Technical requirements
Managing our code with crates and Cargo instead of pip ...
Get Speed Up Your Python with Rust now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.