pub trait GetIdent {
// Required method
fn get_ident(&self) -> Option<&Ident>;
}Expand description
Shortcut to get syn::Ident from various types
Required Methods§
Sourcefn get_ident(&self) -> Option<&Ident>
fn get_ident(&self) -> Option<&Ident>
Returns reference of ident if its syn::Path is syn::Ident; Otherwise None
Any crate::ext::GetPath also implements GetIdent.