[][src]Trait syn_ext::ext::GetIdent

pub trait GetIdent {
    fn get_ident(&self) -> Option<&Ident>;
}

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.

Loading content...

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

Loading content...

Implementors

impl<T> GetIdent for T where
    T: GetPath
[src]

fn get_ident(&self) -> Option<&Ident>[src]

Any crate::ext::GetPath automatically implements crate::ext::GetIdent

Loading content...