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§

Required Methods§

source

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.

Implementations on Foreign Types§

source§

impl<'tcx> AdtDefExt<'tcx> for AdtDef<'tcx>

§

type AllVisibleFieldsIter = impl Iterator<Item = &'tcx FieldDef>

source§

fn all_visible_fields( self, module: DefId, tcx: TyCtxt<'tcx> ) -> Self::AllVisibleFieldsIter

Implementors§