Explore the power and versatility of Rust's where clause in this 27-minute conference talk from RustLatam 2019. Dive into the essential tool for generic Rust programming, uncovering its full expressiveness and creative applications. Learn how to leverage where clauses to maintain clean, flexible, and sound code while preventing misuse. Gain insights into basic building blocks for navigating complex constraints, and discover advanced examples involving traits, state machines, and database queries. Enhance your Rust programming skills and unlock new possibilities for writing efficient and robust code.
Overview
Syllabus
Introduction
The Where Clause
Constraints
Thread API
Generic code
Finding the right level
Advanced examples
Traits
State Machines
Transition to Loop
Database Query
The Problem
Example
Conclusion
Taught by
Rust