Cover 7

Rust Essentials

Rust Essentials

2015 • 184 pages

Chapter 5: Generalizing Code with Higher-order Functions and Parametrization; Higher-order functions and closures; Iterators; Consumers and adapters; Generic data structures and functions; Error handling; Panics; Failures; Methods on structs; Traits; Using trait constraints; Built-in traits and operator overloading; Summary; Chapter 6: Pointers and Memory Safety; Pointers and references ; The stack and the heap; Lifetimes; Copying values and the Copy trait; Pointers; References; Using ref in a match; Ownership and borrowing; Boxes; Reference counting; Overview of pointers; Summary

Tags