Function rustc_typeck::check::check::check_representable
source · [−]pub(super) fn check_representable(
tcx: TyCtxt<'_>,
sp: Span,
item_def_id: LocalDefId
) -> bool
Expand description
Checks whether a type can be represented in memory. In particular, it identifies types that contain themselves without indirection through a pointer, which would mean their size is unbounded.