boblaw0@lemmy.world to Rust@programming.dev · edit-210 months agoHow do you order your enums, structs and functions in your files?message-squaremessage-square8fedilinkarrow-up115arrow-down10
arrow-up115arrow-down1message-squareHow do you order your enums, structs and functions in your files?boblaw0@lemmy.world to Rust@programming.dev · edit-210 months agomessage-square8fedilink
minus-squareFil@hachyderm.iolinkfedilinkarrow-up2·10 months ago@boblaw0 In an order that tells the story, when reading the module file top-to-bottom. It is usually difficult to do when rapidly developing, but easier to achieve when refactoring a working program or a library.
@boblaw0 In an order that tells the story, when reading the module file top-to-bottom. It is usually difficult to do when rapidly developing, but easier to achieve when refactoring a working program or a library.