15
submitted 10 months ago* (last edited 10 months ago) by boblaw0@lemmy.world to c/rust@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] hairyballs@programming.dev 3 points 10 months ago* (last edited 10 months ago)
  • I put the types first in the file, sorted by importance
  • then the public free functions
  • then the impl blocks, sorted by importance, also. Usually, display impls and similar end up being at the end
  • then the private free functions (helpers)

The idea is that I can see all the types in one glance, then I look at the rest.

this post was submitted on 06 Sep 2023
15 points (100.0% liked)

Rust

5390 readers
58 users here now

Welcome to the Rust community! This is a place to discuss about the Rust programming language.

Wormhole

!performance@programming.dev

Credits

  • The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)

founded 1 year ago
MODERATORS