Rust Coding Guidelines (50 Core Rules) Naming (Rust-Specific) | Rule | Guideline | |------|-----------| | No prefix | not | | Iterator convention | / / | | Conversion naming | (cheap &), (expensive), (ownership) | | Static var prefix | for , no prefix for | Data Types | Rule | Guideline | |------|-----------| | Use newtypes | for domain semantics | | Prefer slice patterns | | | Pre-allocate | , | | Avoid Vec abuse | Use arrays for fixed sizes | Strings | Rule | Guideline | |------|-----------| | Prefer bytes | over when ASCII | | Use | When might modify borrowed data | | Use | Over string con…