e009: Composing a Rustic tune

Published: Jan. 9, 2016, 9 p.m.

b'

Notes

\\n

Last time, we looked at generics and traits at a high level. This time, we dig deeper on traits, looking specifically at std::iter::Iterator as an example of a powerful trait that can be composed across types, and then at how we might compose multiple traits on a single type.

\\n

We also talk about the syntax for traits, the use of marker traits, some of the things you can\\u2019t presently do with traits, and even just a smidge about the future of traits in Rust. All that in less than 20 minutes!

\\n

You\\u2019ll find today\\u2019s source example fairly interesting, I think: it\\u2019s just one type, but it uses almost every concept discussed on the show today!

\\n\\n\\n

Sponsors

\\n
    \\n
  • Aleksey Pirogov
  • \\n
  • Chris Palmer
  • \\n
  • Derek Morr
  • \\n
  • Hamza Sheikh
  • \\n
  • Luca Schmid
  • \\n
  • Micael Bergeron
  • \\n
  • Ralph Giles (\\u201crillian\\u201d)
  • \\n
  • reddraggone9
  • \\n
  • William Roe
  • \\n
\\n

Become a sponsor

\\n\\n

Follow

\\n'