Function syntax::attr::containsUnstable [-] [+] [src]

pub fn contains(haystack: &[P<MetaItem>], needle: &MetaItem) -> bool

Check if needle occurs in haystack by a structural comparison. This is slightly subtle, and relies on ignoring the span included in the == comparison a plain MetaItem.