Skip to main content

GetIdent

Trait GetIdent 

Source
pub trait GetIdent {
    // Required method
    fn get_ident(&self) -> Result<Ident, String>;
}

Required Methods§

Source

fn get_ident(&self) -> Result<Ident, String>

Gets the Ident from the AST element.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl GetIdent for FnArg

Source§

impl GetIdent for Item

Source§

impl GetIdent for Path

Source§

impl GetIdent for Type

Implementors§