pub trait Ident: ProcMacro<Ident = Self> + Display {
// Required methods
fn new(string: &str, span: Self::Span) -> Self;
fn new_raw(string: &str, span: Self::Span) -> Self;
fn span(&self) -> Self::Span;
fn set_span(&mut self, span: Self::Span);
}
Expand description
Ident
API trait. See proc_macro::Ident
.
This trait is implemented for Ident
in proc_macro
and proc_macro2
if the
corresponding feature is enabled.
See also IdentExt
.
Required Methods§
Object Safety§
This trait is not object safe.