Function rustc::middle::ty::each_attr[src]
pub fn each_attr(tcx: &ctxt, did: DefId, f: |&Attribute| -> bool) -> bool
Iterate over attributes of a definition.
pub fn each_attr(tcx: &ctxt, did: DefId, f: |&Attribute| -> bool) -> bool
Iterate over attributes of a definition.
Prefix searches with a type followed by a colon (e.g.
fn:) to restrict the search to a given type.
Accepted types are: fn, mod,
struct (or str), enum,
trait, typedef (or
tdef).