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