Item visibility and pub() as API design tools.
Show NotesThe easiest and most effective way to understand the example in this case will simply be to look directly at the source code. You can read the docs for each of the nested modules, but you’ll be doing a lot of navigating around for that.
Also, I am using Cargo’s --document-private-items flag, so that you can see all the items in all the modules, even those which are not public, but note that usually you would not see docs for those!
Links the reference on visibility RFC #1422 episode source code e020 SponsorsThanks to Manning for sponsoring the show and giving all of you a 40%-off discount on their whole store (but especially their WebAssembly in Action MEAP) at deals.manning.com/new-rustacean!
Patreon Sponsors Adam Green Aleksey Pirogov Alexander Kryvomaz Alexander Lozada Alexander Payne Andrew Dirksen Andrew Thompson Anthony Deschamps Anthony Scotti Arlen Haftevani Arlo (Hyena) Arun Kulshreshtha Behnam Esfahbod Benjamin Manns Benjamin Wasty Brandon ‘Spanky’ Mills Brian Casiello Brian Manning Brian McCallister Bryan Stitt Caryn Finkelman Cass Costello Cat Dad Chap Lovejoy Charlie Egan Chip Chris Palmer Christoffer Ceutz Cristian Paul Dan Abrams Daniel Daniel Bross Daniel Collin Daniel Mason David Carroll David Hewson Derek Morr Dominic Cooney Doug Reeves Douglas Correa Edmund Kump Eduard Knyshov Embark Studios Eugene Bulkin Evan Stoll Fabio (decathorpe) Fabio Correa Gaveen Prabhasara Graham Wihlidal Henri Sivonen Ian Jones Hoàng Đức Hiếu Hugo Josefson “Jake”“ferris”" Taylor" Jako Danar James Cooper James Hagans II Jason Bowen Jeff May Jendrik Illner Jerome Froelich JockeTF Joar Wandborg Johan Andersson John Rudnick Jon Jonah Jonathan Knapp Jonathan Turner Joseph Hain Joseph Mou Joseph Schrag Joe Percy Justin Ossevoort Kai Yao Kazutaka Mise Keith Gray Kilian Rault Lee Jenkins Luca Schmid Luiz Irber Lukas Eller Malnormalulo Martin Heuschober Masashi Fujita Matt Rudder Matthew Brenner Matthias Ruszala Max Jacobson Max R.R. Collada Messense Lv Micael Bergeron Michael Mc Donnell Michael Melanson Michael Sanders Nathan Sculli Nick Coish Nick Gideo Nick Stevens Nicolas Pochet Oladapo Fadeyi Olaf Leidinger(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: hello@newrustacean.com Chris Krycho + GitHub: chriskrycho + Twitter: @chriskrychoMeta 3: Happy Coding
News: Rust 1.35
CYSK: bindgen and cbindgen
e031: FFI Deep Dive
News: Rust 1.33 and 1.34
e029: I’m Out to C
Bonus 14: How the Sausage Gets Made
Bonus 13: I Still Make Silly Mistakes
e028: Meet My Associates
News: Rust 1.32
News: Rust 1.31 and the 2018 Edition, Part II
News: Rust 1.31 and the 2018 Edition, Part I
Interview: Integer32
e027: Trust Me; I Promise!
News: Rust 1.29 and 1.30
Bonus 12: Translating Between Languages
Bonus 11: Burnout
News: Rust 1.28
e026: Functional Programming Ideas
Create your
podcast in
minutes
It is Free
Insight Story: Tech Trends Unpacked
Zero-Shot
Fast Forward by Tomorrow Unlocked: Tech past, tech future
The Unbelivable Truth - Series 1 - 26 including specials and pilot
Well There‘s Your Problem