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

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

Shortcut to get syn::Ident from various types

Required methods

Returns reference of ident if its syn::Path is syn::Ident; Otherwise None

Any crate::ext::GetPath also implements GetIdent.

Implementations on Foreign Types

Get ident of the syn::Attribute::path field.

Get ident of syn::Meta::path

Implementors