I would like to know if there are any proposals for internal file organization, like what to put from top to bottom…

Example: start with pub use declarations, then use, the mod, enums, traits, etc.

I’ve seen rustfmt has some options like reorder_imports that may impose some partial structure, but I would like a more comprehensive guide/spec…

If there’s nothing like that. Can we maybe discuss something that makes sense? 🤔

  • lemming_7765OP
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    So, hierarchichal top down, I guess. With main types before subordinate ones. Right?