Generic Types, Traits, and Lifetimes - The Rust Programming Language
Every programming language has tools for effectively handling the duplication of concepts. In Rust, one such tool is generics: abstract stand-ins for concrete types or other properties. We can express the behavior of generics or how they relate to other generics without knowing what will be in their place when compiling and running the code.
Generic Types, Traits, and Lifetimes - The Rust Programming Language Keyboard shortcuts Press ← or → to navigate between chapters Press S or / to search in the book Press ? to show this help Press Esc to hide this help Auto Light Rust Coal Navy Ayu The Rust Programming Language Generic Types, Traits, and Lifetimes Every programming language has tools for effectively handling the duplication of concepts. In Rust, one such tool is generics : abstract stand-ins for concrete types or other properties. We can express the behavior of generics or how they relate to other generics without knowing what
saved by
related reading
- Generic Data Types - The Rust Programming Languagedoc.rust-lang.org
- Validating References with Lifetimes - The Rust Programming Languagedoc.rust-lang.org
- Defining Shared Behavior with Traits - The Rust Programming Languagedoc.rust-lang.org
- Enums and Pattern Matching - The Rust Programming Languagedoc.rust-lang.org
- Defining and Instantiating Structs - The Rust Programming Languagedoc.rust-lang.org
- Using Structs to Structure Related Datadoc.rust-lang.org
- An Example Program Using Structs - The Rust Programming Languagedoc.rust-lang.org
- Control Flow - The Rust Programming Languagedoc.rust-lang.org
- Methods - The Rust Programming Languagedoc.rust-lang.org
- Defining an Enum - The Rust Programming Languagedoc.rust-lang.org
- References and Borrowing - The Rust Programming Languagedoc.rust-lang.org
- Programming a Guessing Game - The Rust Programming Languagedoc.rust-lang.org