const_type_layout/impls/core/
ffi.rs1use crate::{
2 typeset::{tset, ComputeTypeSet, ExpandTypeSet},
3 TypeLayout, TypeLayoutInfo, TypeStructure,
4};
5
6unsafe impl TypeLayout for core::ffi::c_void {
7 type Inhabited = crate::inhabited::Inhabited;
8
9 const TYPE_LAYOUT: TypeLayoutInfo<'static> = TypeLayoutInfo {
10 name: ::core::any::type_name::<Self>(),
11 size: ::core::mem::size_of::<Self>(),
12 alignment: ::core::mem::align_of::<Self>(),
13 structure: TypeStructure::Enum {
14 repr: "u8",
15 variants: &[],
16 },
17 };
18}
19
20unsafe impl ComputeTypeSet for core::ffi::c_void {
21 type Output<T: ExpandTypeSet> = tset![.. @ T];
22}