For AI agents: the complete documentation index is available at /llms.txt, the full documentation bundle is available at /llms-full.txt, and this page is available as Markdown at /packs/languages/rust/naming.md.
Quick start

Naming

Name what an operation does and what a value represents.

Conventions

Why

Native casing makes declarations predictable to Rust readers and tools.

Rules

  • MUST use snake_case for modules, files, functions, and values. [review]
  • MUST use PascalCase for structs, enums, traits, and type parameters. [review]
  • MUST use SCREAMINGSNAKECASE for constants. [review]
  • MUST give predicates an is_, has_, can_, or should_ prefix when appropriate. [review]
  • MUST choose concrete operation verbs rather than vague utility names. [review]
  • SHOULD let the owning module supply context instead of repeating its name in every declaration. [review]

[review]

Compiler naming warnings and configured Clippy rules cover casing. Review checks domain precision.

Enforcement

Compiler naming warnings and configured Clippy rules cover casing. Review checks domain precision.