[][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]

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

impl IdentFragment for Ident[src]

impl IdentFragment for bool[src]

impl IdentFragment for str[src]

impl IdentFragment for String[src]

impl IdentFragment for u8[src]

impl IdentFragment for u16[src]

impl IdentFragment for u32[src]

impl IdentFragment for u64[src]

impl IdentFragment for u128[src]

impl IdentFragment for usize[src]

Loading content...

Implementors

Loading content...