PLAY PODCASTS
e018: `Borrow`, `AsRef`, `Deref`: my head hurts now

e018: `Borrow`, `AsRef`, `Deref`: my head hurts now

New Rustacean

January 31, 201717m 25s

Audio is streamed directly from the publisher (podtrac.com) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.

Show Notes

Three traits which are essential for designing good, Rustic APIs.

Notes

Borrow, AsRef, and Deref are a little complicated, but they're well-worth understanding. Together, they give you tools for dealing with everything from HashMap and friends to conversions involving smart pointer types to easily using String and str or Vec and slice together.

Sponsors

(Thanks to the couple people donating who opted out of the reward tier, as well. You know who you are!)

Become a sponsor

Contact