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: The path() of the first-level attribute.
  • tag: The path() of the second-level attribute.