boblaw0@lemmy.world to Rust@programming.dev · 3 years agoHow do you order your enums, structs and functions in your files?message-squaremessage-square8linkfedilinkarrow-up115
arrow-up115message-squareHow do you order your enums, structs and functions in your files?boblaw0@lemmy.world to Rust@programming.dev · 3 years agomessage-square8linkfedilink
minus-squareKillTheMule@programming.devlinkfedilinkarrow-up5·3 years agoEnums/Structs first, but those 2 are mixed, and any impl for them will be directly after the definition of the type itsef. Free functions last.
Enums/Structs first, but those 2 are mixed, and any impl for them will be directly after the definition of the type itsef. Free functions last.