Function rustc_codegen_llvm::debuginfo::utils::fat_pointer_kind

source ·
pub(crate) fn fat_pointer_kind<'ll, 'tcx>(
    cx: &CodegenCx<'ll, 'tcx>,
    pointee_ty: Ty<'tcx>
) -> Option<FatPtrKind>
Expand description

Determines if pointee_ty is slice-like or trait-object-like, i.e. if the second field of the fat pointer is a length or a vtable-pointer. If pointee_ty does not require a fat pointer (because it is Sized) then the function returns None.