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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.