Function rustc_lint::types::transparent_newtype_field
source · pub fn transparent_newtype_field<'a, 'tcx>(
tcx: TyCtxt<'tcx>,
variant: &'a VariantDef
) -> Option<&'a FieldDef>
Expand description
repr(transparent)
structs can have a single non-ZST field, this function returns that
field.