Module show_notes::e023
source · Expand description
Traits Deep Dive, Part 1
- Date: April 28, 2018
- Subject: Defining and using your own traits, using other crates’ traits, and the orphan rule.
- Audio
§Show Notes
Traits—
Also of interest: specialization:
- RFC #1210
- recent blog posts:
§Sponsors
- Aaron Turon
- Alexander Payne
- Anthony Deschamps
- Anthony Scotti
- Antonin Carette
- Aleksey Pirogov
- Andreas Fischer
- Andrew Thompson
- Austin LeSure
- Behnam Esfahbod
- Benjamin Wasty
- Brent Vatne
- Brian Casiello
- Chap Lovejoy
- Charlie Egan
- Chris Jones
- Chris Palmer
- Coleman McFarland
- Dan Abrams
- Daniel Collin
- Daniel P. Clark
- David W. Allen
- David Hewson
- Derek Buckley
- Derek Morr
- Eugene Bulkin
- [Hans Fjällemark]
- Henri Sivonen
- Ian Jones
- Jakub “Limeth” Hlusička
- James Cooper
- Jerome Froelich
- John Rudnick
- Jonathan Turner
- Joseph Hain
- Jupp Müller
- Justin Ossevoort
- Karl Hobley
- Keith Gray
- Kilian Rault
- Laurie Hedge
- Luca Schmid
- Luiz Irber
- Mark LeMoine
- Masashi Fujita
- Matt Rudder
- Matthew Brenner
- Matthias Ruszala
- Max Jacobson
- Messense Lv
- Micael Bergeron
- Nathan Sculli
- Nick Stevens
- Oluseyi Sonaiya
- Ovidiu Curcan
- Pascal Hertleif
- Patrick O’Doherty
- [Paul Naranja]
- Peter Tillemans
- Ralph Giles (“rillian”)
- Raj Venkalil
- Ramon Buckley
- Randy MacLeod
- Raph Levien
- reddraggone9
- Ryan Blecher
- Sebastián Ramírez Magrí
- Shane Utt
- Simon G.
- Steve Jenson
- Steven Knight
- Steven Murawski
- Stuart Hinson
- Tim Brooks
- Timm Preetz
- Tom Prince
- Ty Overby
- Tyler Harper
- Vesa Kaihlavirta
- Victor Kruger
- Will Greenberg
- William Roe
- Yaacov Finkelman
- Zachary Snyder
- Zaki
(Thanks to the couple people donating who opted out of the reward tier, as well. You know who you are!)
§Become a sponsor
§Contact
- New Rustacean:
- Twitter: @newrustacean
- Email: hello@newrustacean.com
- Chris Krycho
- GitHub: chriskrycho
- Twitter: @chriskrycho
Structs§
- e023: Traits Deep Dive, Part I
Enums§
- Breakfast is eatable, so
Breakfast
isEatable
! - Moar Breakfast is even better, so
MoarBreakfast
is alsoEatable
andNomable
!
Traits§
- A trait, to be implemented by types like
Breakfast
. - Just another way to eat things – exists to show conflicting trait methods.
Functions§
- Shows how you can use traits with your own and others’ types.