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§
Sourcefn path_is_ident(&self, ident: &Ident) -> bool
 
fn path_is_ident(&self, ident: &Ident) -> bool
Returns true if the path is a given ident
Sourcefn abort_with_span(self, message: String) -> !
 
fn abort_with_span(self, message: String) -> !
Aborts with a given message on self’s span