Module show_notes::e008
source · Expand description
Just like something else
- Date: 2015-12-27
- Subject: Generics, traits, and shared behavior in Rust.
- Audio
Structs
- This is just a container which can hold any two types.
- A simple type to illustrate trait implementation.
Enums
- This is
Option<T>
, but using Haskell’s names instead.
Functions
- Demonstrate a function generic over any type.
- Demonstrate a function with a trait bound on a generic.