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

EPISODE · Jan 31, 2017 · 17 MIN

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

from New Rustacean · host Chris Krycho

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. Links AsRef, Borrow, and Deref: Borrow and AsRef in The Rust Programming Language collections::borrow::Borrow std::convert::AsRef std::ops::Deref persistent data structures "Rust and Rest" – Arnin Roacher sentry-cli Particularly relevant previous episodes: e008: Just like something else e009: Composing a Rustic tune e017: Point me where I need to go interview::2: Raph Levien Sponsors Aleksey Pirogov Andreas Fischer Andrew Thompson Ben Whitley Cameron Mochrie Chris Palmer Christopher Giffard Daniel Collin Derek Morr Jakub "Limeth" Hlusička Jordan Henderson Jupp Müller Keith Gray Lachlan Collins Luca Schmid Matt Rudder Matthew Piziak Micael Bergeron Ovidiu Curcan Pascal Hertleif Peter Tillemans Philipp Keller Ralph Giles ("rillian") Raph Levien reddraggone9 Ryan Ollos Steven Murawski Vesa Kaihlavirta Vlad Bezden William Roe Zaki (Thanks to the couple people donating who opted out of the reward tier, as well. You know who you are!) Become a sponsor Patreon Venmo Dwolla Cash.me Flattr PayPal.me Contact New Rustacean: Twitter: @newrustacean Email: [email protected] Chris Krycho GitHub: chriskrycho Twitter: @chriskrycho

Episode metadata supplied by the publisher feed · Published Jan 31, 2017

Embed this episode

NOW PLAYING

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

0:00 17:25

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

Frequently Asked Questions

How long is this episode of New Rustacean?

This episode is 17 minutes long.

When was this New Rustacean episode published?

This episode was published on January 31, 2017.

Can I download this New Rustacean episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!