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