Discussion
Loading...

Post

Log in
  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Jan :rust: :ferris:
@janriemer@floss.social  路  activity timestamp last week

Destructure as a Reminder - by Dmitrii Aleksandrov

https://home.expurple.me/posts/destructure-as-a-reminder/

This is such a neat trick, if you need to use all fields in a struct for an operation.

Compiler will say "No", if you forget to use one field. 馃檪 ferris

#Rust #RustLang

  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About 路 Code of conduct 路 Privacy 路 Users 路 Instances
Bonfire social 路 1.0.0-rc.2.11 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct