Function syntax::attr::contains
[−]
[src]
pub fn contains(haystack: &[P<MetaItem>], needle: &MetaItem) -> bool
Unstable (
rustc_private)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.