PathIsIdent

Trait PathIsIdent 

Source
pub trait PathIsIdent {
    // Required methods
    fn path_is_ident(&self, ident: &Ident) -> bool;
    fn abort_with_span(self, message: String) -> !;
}
Expand description

The input’s path is a given ident. Used for find_attr and find_attrs. Implemented for Attribute and &Attribute.

Required Methods§

Source

fn path_is_ident(&self, ident: &Ident) -> bool

Returns true if the path is a given ident

Source

fn abort_with_span(self, message: String) -> !

Aborts with a given message on self’s span

Implementations on Foreign Types§

Source§

impl PathIsIdent for &Attribute

Source§

fn path_is_ident(&self, ident: &Ident) -> bool

Source§

fn abort_with_span(self, message: String) -> !

Source§

impl PathIsIdent for &mut Attribute

Source§

fn path_is_ident(&self, ident: &Ident) -> bool

Source§

fn abort_with_span(self, message: String) -> !

Source§

impl PathIsIdent for Attribute

Source§

fn path_is_ident(&self, ident: &Ident) -> bool

Source§

fn abort_with_span(self, message: String) -> !

Implementors§