Trait rustc_utils::mir::adt_def::AdtDefExt
source · pub trait AdtDefExt<'tcx> {
type AllVisibleFieldsIter: Iterator<Item = &'tcx FieldDef>;
// Required method
fn all_visible_fields(
self,
module: DefId,
tcx: TyCtxt<'tcx>
) -> Self::AllVisibleFieldsIter;
}
Expand description
Extension trait for AdtDef
.
Required Associated Types§
type AllVisibleFieldsIter: Iterator<Item = &'tcx FieldDef>
Required Methods§
sourcefn all_visible_fields(
self,
module: DefId,
tcx: TyCtxt<'tcx>
) -> Self::AllVisibleFieldsIter
fn all_visible_fields( self, module: DefId, tcx: TyCtxt<'tcx> ) -> Self::AllVisibleFieldsIter
Returns an iterator over all the fields of the ADT that are visible
from module
.