DiagArgName in rustc_error_messages - Rust
Description: Name of a diagnostic argument.

Skip to main content

## DiagArgName

# Type Alias DiagArgName

Source

    pub type DiagArgName = Cow<'static, str>;

Expand description

Name of a diagnostic argument.

## Aliased Type§

    pub enum DiagArgName {
        Borrowed(&'static str),
        Owned(String),
    }

## Variants§

§

### Borrowed(&'static str)

Borrowed data.

§

### Owned(String)

Owned data.

## Layout§

Note: Unable to compute type layout, possibly due to this type having generic parameters. Layout can only be computed for concrete, fully-instantiated types.