[−][src]Trait syn_ext::ext::GetIdent
Shortcut to get syn::Ident from various types
Required methods
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.
Implementations on Foreign Types
impl GetIdent for Attribute[src]
fn get_ident(&self) -> Option<&Ident>[src]
Get ident of the syn::Attribute::path field.
impl GetIdent for Item[src]
impl GetIdent for ImplItem[src]
impl GetIdent for TraitItem[src]
impl GetIdent for Meta[src]
fn get_ident(&self) -> Option<&Ident>[src]
Get ident of syn::Meta::path
Implementors
impl<T> GetIdent for T where
T: GetPath, [src]
T: GetPath,
fn get_ident(&self) -> Option<&Ident>[src]
Any crate::ext::GetPath automatically implements crate::ext::GetIdent