Function rustc_lint::middle::ty::named_element_tyUnstable
[-] [+]
[src]
pub fn named_element_ty(cx: &ctxt<'tcx>, ty: &'tcx TyS<'tcx>, n: Name, variant: Option<DefId>) -> Option<&'tcx TyS<'tcx>>
Returns the type of element at field n
in struct or struct-like type t
.
For an enum t
, variant
must be some def id.