Function rustc::middle::ty::has_attrExperimental
[-]
[+]
[src]
pub fn has_attr(tcx: &ctxt, did: DefId, attr: &str) -> bool
Determine whether an item is annotated with an attribute