Trait IdentFragment

pub trait IdentFragment

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.

Provided Methods

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

Span associated with this IdentFragment.

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

Implementors