|
| 1 | +/* automatically generated by rust-bindgen */ |
| 2 | + |
| 3 | + |
| 4 | +#![allow(dead_code, non_snake_case, non_camel_case_types, non_upper_case_globals)] |
| 5 | + |
| 6 | + |
| 7 | +#[repr(C)] |
| 8 | +#[derive(Debug, Default, Copy)] |
| 9 | +pub struct Pupper { |
| 10 | + pub _address: u8, |
| 11 | +} |
| 12 | +#[test] |
| 13 | +fn bindgen_test_layout_Pupper() { |
| 14 | + assert_eq!(::std::mem::size_of::<Pupper>() , 1usize , concat ! ( |
| 15 | + "Size of: " , stringify ! ( Pupper ) )); |
| 16 | + assert_eq! (::std::mem::align_of::<Pupper>() , 1usize , concat ! ( |
| 17 | + "Alignment of " , stringify ! ( Pupper ) )); |
| 18 | +} |
| 19 | +impl Clone for Pupper { |
| 20 | + fn clone(&self) -> Self { *self } |
| 21 | +} |
| 22 | +#[repr(C)] |
| 23 | +#[derive(Debug, Default, Copy)] |
| 24 | +pub struct Doggo { |
| 25 | + pub _address: u8, |
| 26 | +} |
| 27 | +#[test] |
| 28 | +fn bindgen_test_layout_Doggo() { |
| 29 | + assert_eq!(::std::mem::size_of::<Doggo>() , 1usize , concat ! ( |
| 30 | + "Size of: " , stringify ! ( Doggo ) )); |
| 31 | + assert_eq! (::std::mem::align_of::<Doggo>() , 1usize , concat ! ( |
| 32 | + "Alignment of " , stringify ! ( Doggo ) )); |
| 33 | +} |
| 34 | +impl Clone for Doggo { |
| 35 | + fn clone(&self) -> Self { *self } |
| 36 | +} |
| 37 | +#[repr(C)] |
| 38 | +#[derive(Debug, Default, Copy)] |
| 39 | +pub struct SuchWow { |
| 40 | + pub _address: u8, |
| 41 | +} |
| 42 | +#[test] |
| 43 | +fn bindgen_test_layout_SuchWow() { |
| 44 | + assert_eq!(::std::mem::size_of::<SuchWow>() , 1usize , concat ! ( |
| 45 | + "Size of: " , stringify ! ( SuchWow ) )); |
| 46 | + assert_eq! (::std::mem::align_of::<SuchWow>() , 1usize , concat ! ( |
| 47 | + "Alignment of " , stringify ! ( SuchWow ) )); |
| 48 | +} |
| 49 | +impl Clone for SuchWow { |
| 50 | + fn clone(&self) -> Self { *self } |
| 51 | +} |
| 52 | +#[repr(C)] |
| 53 | +#[derive(Debug, Default, Copy)] |
| 54 | +pub struct Opaque { |
| 55 | + pub _bindgen_opaque_blob: u8, |
| 56 | +} |
| 57 | +#[test] |
| 58 | +fn bindgen_test_layout_Opaque() { |
| 59 | + assert_eq!(::std::mem::size_of::<Opaque>() , 1usize , concat ! ( |
| 60 | + "Size of: " , stringify ! ( Opaque ) )); |
| 61 | + assert_eq! (::std::mem::align_of::<Opaque>() , 1usize , concat ! ( |
| 62 | + "Alignment of " , stringify ! ( Opaque ) )); |
| 63 | +} |
| 64 | +extern "C" { |
| 65 | + #[link_name = "_ZN6Opaque17eleven_out_of_tenEv"] |
| 66 | + pub fn Opaque_eleven_out_of_ten(this: *mut Opaque) -> SuchWow; |
| 67 | +} |
| 68 | +extern "C" { |
| 69 | + #[link_name = "_ZN6OpaqueC1E6Pupper"] |
| 70 | + pub fn Opaque_Opaque(this: *mut Opaque, pup: Pupper); |
| 71 | +} |
| 72 | +impl Clone for Opaque { |
| 73 | + fn clone(&self) -> Self { *self } |
| 74 | +} |
| 75 | +impl Opaque { |
| 76 | + #[inline] |
| 77 | + pub unsafe fn eleven_out_of_ten(&mut self) -> SuchWow { |
| 78 | + Opaque_eleven_out_of_ten(self) |
| 79 | + } |
| 80 | + #[inline] |
| 81 | + pub unsafe fn new(pup: Pupper) -> Self { |
| 82 | + let mut __bindgen_tmp = ::std::mem::uninitialized(); |
| 83 | + Opaque_Opaque(&mut __bindgen_tmp, pup); |
| 84 | + __bindgen_tmp |
| 85 | + } |
| 86 | +} |
| 87 | +extern "C" { |
| 88 | + #[link_name = "_ZN6Opaque11MAJESTIC_AFE"] |
| 89 | + pub static mut Opaque_MAJESTIC_AF: Doggo; |
| 90 | +} |
| 91 | +#[repr(C)] |
| 92 | +#[derive(Debug, Default, Copy)] |
| 93 | +pub struct Whitelisted { |
| 94 | + pub some_member: Opaque, |
| 95 | +} |
| 96 | +#[test] |
| 97 | +fn bindgen_test_layout_Whitelisted() { |
| 98 | + assert_eq!(::std::mem::size_of::<Whitelisted>() , 1usize , concat ! ( |
| 99 | + "Size of: " , stringify ! ( Whitelisted ) )); |
| 100 | + assert_eq! (::std::mem::align_of::<Whitelisted>() , 1usize , concat ! ( |
| 101 | + "Alignment of " , stringify ! ( Whitelisted ) )); |
| 102 | + assert_eq! (unsafe { |
| 103 | + & ( * ( 0 as * const Whitelisted ) ) . some_member as * const |
| 104 | + _ as usize } , 0usize , concat ! ( |
| 105 | + "Alignment of field: " , stringify ! ( Whitelisted ) , "::" , |
| 106 | + stringify ! ( some_member ) )); |
| 107 | +} |
| 108 | +impl Clone for Whitelisted { |
| 109 | + fn clone(&self) -> Self { *self } |
| 110 | +} |
0 commit comments