# [−] [src] Trait quote::IdentFragment

    pub trait IdentFragment {
        fn fmt(&self, f: &mut Formatter<'_>) -> Result;

        fn span(&self) -> Option<Span> { ... }
    }

Specialized formatting trait used by `format_ident!`.

`Ident` arguments formatted using this trait will have their `r#` prefix stripped, if present.

See `format_ident!` for more information.

## Required methods

### `fn fmt(&self, f: &mut Formatter<'_>) -> Result`

Format this value as an identifier fragment.

Loading content...

## Provided methods

### `fn span(&self) -> Option<Span>`

Span associated with this `IdentFragment`.

If non-`None`, may be inherited by formatted identifiers.

Loading content...

## Implementations on Foreign Types

### `impl<T: IdentFragment + ?Sized, '_> IdentFragment for &'_ T` [src]

#### `fn span(&self) -> Option<Span>` [src]

#### `fn fmt(&self, f: &mut Formatter<'_>) -> Result` [src]

### `impl<T: IdentFragment + ?Sized, '_> IdentFragment for &'_ mut T` [src]

#### `fn span(&self) -> Option<Span>` [src]

#### `fn fmt(&self, f: &mut Formatter<'_>) -> Result` [src]

### `impl IdentFragment for Ident` [src]

#### `fn span(&self) -> Option<Span>` [src]

#### `fn fmt(&self, f: &mut Formatter<'_>) -> Result` [src]

### `impl<T: ?Sized, '_> IdentFragment for Cow<'_, T> where
T: IdentFragment + ToOwned,` [src]

#### `fn span(&self) -> Option<Span>` [src]

#### `fn fmt(&self, f: &mut Formatter<'_>) -> Result` [src]

### `impl IdentFragment for bool` [src]

#### `fn fmt(&self, f: &mut Formatter<'_>) -> Result` [src]

### `impl IdentFragment for str` [src]

#### `fn fmt(&self, f: &mut Formatter<'_>) -> Result` [src]

### `impl IdentFragment for String` [src]

#### `fn fmt(&self, f: &mut Formatter<'_>) -> Result` [src]

### `impl IdentFragment for char` [src]

#### `fn fmt(&self, f: &mut Formatter<'_>) -> Result` [src]

### `impl IdentFragment for u8` [src]

#### `fn fmt(&self, f: &mut Formatter<'_>) -> Result` [src]

### `impl IdentFragment for u16` [src]

#### `fn fmt(&self, f: &mut Formatter<'_>) -> Result` [src]

### `impl IdentFragment for u32` [src]

#### `fn fmt(&self, f: &mut Formatter<'_>) -> Result` [src]

### `impl IdentFragment for u64` [src]

#### `fn fmt(&self, f: &mut Formatter<'_>) -> Result` [src]

### `impl IdentFragment for u128` [src]

#### `fn fmt(&self, f: &mut Formatter<'_>) -> Result` [src]

### `impl IdentFragment for usize` [src]

#### `fn fmt(&self, f: &mut Formatter<'_>) -> Result` [src]

Loading content...

## Implementors

Loading content...