Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Latest commit

 

History

History
8 lines (8 loc) · 675 Bytes

File metadata and controls

8 lines (8 loc) · 675 Bytes
  • Use derive_builder, getset, and derive_more whenever possible.
  • Do not use positional attributes except for single field structs.
  • Do not use public attributes on public structs. Use getters and setters instead.
  • Do not use get_. Do use set_ and take_ when necessary. Use _mut for mutable getters.
  • Functions that return bool should start with is_ or has_.
  • Always use hasbrown for HashMap and HashSet.
  • It's better to use .expectthan to useif let Some/Okunless you have an else. This is becauseif letwithout anelsecould hide aNoneorErr` without panicing.
  • You should not import bevy from physics except bevy::math