NON_CAMEL_CASE_TYPES in rustc_lint::nonstandard_style - Rust
Description: The `non_camel_case_types` lint detects types, variants, traits and type parameters that don’t have camel case names.

Skip to main content

## NON_CAMEL_CASE_TYPES

# Static NON_CAMEL_CASE_TYPES

Source

    pub static NON_CAMEL_CASE_TYPES: &Lint

Expand description

The `non_camel_case_types` lint detects types, variants, traits and type parameters that don’t have camel case names.

#### §Example

    struct my_struct;

{{produces}}

#### §Explanation

The preferred style for these identifiers is to use “camel case”, such as `MyStruct`, where the first letter should not be lowercase, and should not use underscores between letters. Underscores are allowed at the beginning and end of the identifier, as well as between non-letters (such as `X86_64`).