Trait IdentFragment
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: &Self, f: &mut Formatter<'_>) -> ResultFormat this value as an identifier fragment.
Provided Methods
fn span(self: &Self) -> Option<Span>Span associated with this
IdentFragment.If non-
None, may be inherited by formatted identifiers.
Implementors
impl IdentFragment for boolimpl IdentFragment for u8impl IdentFragment for u64impl<T: IdentFragment + ?Sized> IdentFragment for &Timpl IdentFragment for Stringimpl IdentFragment for charimpl IdentFragment for u32impl IdentFragment for usizeimpl<T: IdentFragment + ?Sized> IdentFragment for &mut Timpl IdentFragment for Identimpl<T> IdentFragment for Cow<'_, T>impl IdentFragment for strimpl IdentFragment for u16impl IdentFragment for u128