is_proc_macro

Function is_proc_macro 

Source
pub fn is_proc_macro(attrs: &[impl AttributeExt]) -> bool
Expand description

Checks whether attrs contain any of proc_macro, proc_macro_derive or proc_macro_attribute