Function rustc::middle::ty::get_attrs [−] [src]

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

Get the attributes of a definition.