NextTypeParamName in rustc_trait_selection::error_reporting::traits::suggestions - Rust
Description: Suggest a new type parameter name for diagnostic purposes.

Skip to main content

## NextTypeParamName

# Trait NextTypeParamName

Source

    pub trait NextTypeParamName {
        // Required method
        fn next_type_param_name(&self, name: Option<&str>) -> String;
    }

Expand description

Suggest a new type parameter name for diagnostic purposes.

`name` is the preferred name you’d like to suggest if it’s not in use already.

## Required Methods§

Source

#### fn next_type_param_name(&self, name: Option<&str>) -> String

## Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

## Implementations on Foreign Types§

Source§

### impl NextTypeParamName for &[GenericParam<'_>]

Source§

#### fn next_type_param_name(&self, name: Option<&str>) -> String

## Implementors§