Function proc_macro_roids::contains_tag
source · pub fn contains_tag(attrs: &[Attribute], namespace: &Path, tag: &Path) -> bool
Expand description
Returns whether an item’s attributes contains a given #[namespace(tag)]
attribute.
Parameters
attrs
: The attributes on the item.namespace
: Thepath()
of the first-level attribute.tag
: Thepath()
of the second-level attribute.