1 #![allow( 2 dead_code, 3 non_snake_case, 4 non_camel_case_types, 5 non_upper_case_globals 6 )] 7 8 #[repr(C)] 9 pub struct NastyStruct { 10 pub mIsSome: bool, 11 pub mStorage: NastyStruct__bindgen_ty_1, 12 pub __bindgen_anon_1: NastyStruct__bindgen_ty_2, 13 } 14 #[repr(C)] 15 pub union NastyStruct__bindgen_ty_1 { 16 pub mFoo: *mut ::std::os::raw::c_void, 17 pub mDummy: ::std::os::raw::c_ulong, 18 } 19 impl Default for NastyStruct__bindgen_ty_1 { default() -> Self20 fn default() -> Self { 21 let mut s = ::std::mem::MaybeUninit::<Self>::uninit(); 22 unsafe { 23 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); 24 s.assume_init() 25 } 26 } 27 } 28 #[repr(C)] 29 pub union NastyStruct__bindgen_ty_2 { 30 pub wat: ::std::os::raw::c_short, 31 pub wut: *mut ::std::os::raw::c_int, 32 } 33 impl Default for NastyStruct__bindgen_ty_2 { default() -> Self34 fn default() -> Self { 35 let mut s = ::std::mem::MaybeUninit::<Self>::uninit(); 36 unsafe { 37 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); 38 s.assume_init() 39 } 40 } 41 } 42 impl Default for NastyStruct { default() -> Self43 fn default() -> Self { 44 let mut s = ::std::mem::MaybeUninit::<Self>::uninit(); 45 unsafe { 46 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); 47 s.assume_init() 48 } 49 } 50 } 51 #[repr(C)] 52 pub union Whatever { 53 pub mTPtr: *mut ::std::os::raw::c_void, 54 pub mInt: ::std::os::raw::c_int, 55 } 56 impl Default for Whatever { default() -> Self57 fn default() -> Self { 58 let mut s = ::std::mem::MaybeUninit::<Self>::uninit(); 59 unsafe { 60 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); 61 s.assume_init() 62 } 63 } 64 } 65