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

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

Get the attributes of a definition.