Overview
Explore nine Rust programming best practices for building libraries in this video tutorial, the first part of a three-part series. Learn about module structure for effective namespacing, scoping, and code organization in Rust. Dive into error handling practices to improve code robustness. Master the art of constructors, chainable setters, and builder patterns with real-world examples from the genai library. Follow along with code demonstrations and gain insights into structuring efficient and maintainable Rust projects.
Syllabus
- - Intro
- 00:10 - c01: Module Structure
- 06:14 - c02: Error Handling
- 11:57 - c03: a Constructors, Builders, Setters
- 22:45 - c03: b Constructors/builders Code example
Taught by
Jeremy Chone