Function rustc::middle::ty::is_type_representableUnstable
[-] [+]
[src]
pub fn is_type_representable<'tcx>(cx: &ctxt<'tcx>, sp: Span, ty: Ty<'tcx>) -> Representability
Check whether a type is representable. This means it cannot contain unboxed structural recursion. This check is needed for structs and enums.