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

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

Get the attributes of a definition.