Function syntax::attr::contains[src]

pub fn contains(haystack: &[Gc<MetaItem>], needle: Gc<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.