Function rustc::middle::ty::get_attrsUnstable [-] [+] [src]

pub fn get_attrs<'tcx>(tcx: &'tcx ctxt, did: DefId) -> Cow<'tcx, [Attribute]>

Get the attributes of a definition.