pub trait AdtDefExt<'tcx> {
// Required method
fn all_visible_fields(
self,
module: DefId,
tcx: TyCtxt<'tcx>,
) -> impl Iterator<Item = &'tcx FieldDef>;
}Expand description
Extension trait for [AdtDef].
Required Methods§
Sourcefn all_visible_fields(
self,
module: DefId,
tcx: TyCtxt<'tcx>,
) -> impl Iterator<Item = &'tcx FieldDef>
fn all_visible_fields( self, module: DefId, tcx: TyCtxt<'tcx>, ) -> impl Iterator<Item = &'tcx FieldDef>
Returns an iterator over all the fields of the ADT that are visible
from module.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.