|
| 1 | +/* automatically generated by rust-bindgen */ |
| 2 | + |
| 3 | + |
| 4 | +#![allow(non_snake_case)] |
| 5 | + |
| 6 | + |
| 7 | +#[repr(C)] |
| 8 | +pub struct VirtualMethods__bindgen_vtable(::std::os::raw::c_void); |
| 9 | +#[repr(C)] |
| 10 | +#[derive(Debug, Copy)] |
| 11 | +pub struct VirtualMethods { |
| 12 | + pub vtable_: *const VirtualMethods__bindgen_vtable, |
| 13 | +} |
| 14 | +#[test] |
| 15 | +fn bindgen_test_layout_VirtualMethods() { |
| 16 | + assert_eq!(::std::mem::size_of::<VirtualMethods>() , 8usize , concat ! ( |
| 17 | + "Size of: " , stringify ! ( VirtualMethods ) )); |
| 18 | + assert_eq! (::std::mem::align_of::<VirtualMethods>() , 8usize , concat ! ( |
| 19 | + "Alignment of " , stringify ! ( VirtualMethods ) )); |
| 20 | +} |
| 21 | +impl Clone for VirtualMethods { |
| 22 | + fn clone(&self) -> Self { *self } |
| 23 | +} |
| 24 | +impl Default for VirtualMethods { |
| 25 | + fn default() -> Self { unsafe { ::std::mem::zeroed() } } |
| 26 | +} |
| 27 | +#[repr(C)] |
| 28 | +#[derive(Debug, Default, Copy, Clone)] |
| 29 | +pub struct Set { |
| 30 | + pub bar: ::std::os::raw::c_int, |
| 31 | +} |
| 32 | +#[repr(C)] |
| 33 | +#[derive(Debug, Copy)] |
| 34 | +pub struct ServoElementSnapshotTable { |
| 35 | + pub _base: Set, |
| 36 | +} |
| 37 | +#[test] |
| 38 | +fn bindgen_test_layout_ServoElementSnapshotTable() { |
| 39 | + assert_eq!(::std::mem::size_of::<ServoElementSnapshotTable>() , 4usize , |
| 40 | + concat ! ( |
| 41 | + "Size of: " , stringify ! ( ServoElementSnapshotTable ) )); |
| 42 | + assert_eq! (::std::mem::align_of::<ServoElementSnapshotTable>() , 4usize , |
| 43 | + concat ! ( |
| 44 | + "Alignment of " , stringify ! ( ServoElementSnapshotTable ) |
| 45 | + )); |
| 46 | +} |
| 47 | +impl Clone for ServoElementSnapshotTable { |
| 48 | + fn clone(&self) -> Self { *self } |
| 49 | +} |
| 50 | +impl Default for ServoElementSnapshotTable { |
| 51 | + fn default() -> Self { unsafe { ::std::mem::zeroed() } } |
| 52 | +} |
| 53 | +#[test] |
| 54 | +fn __bindgen_test_layout_Set_instantiation_13() { |
| 55 | + assert_eq!(::std::mem::size_of::<Set>() , 4usize , concat ! ( |
| 56 | + "Size of template specialization: " , stringify ! ( Set ) )); |
| 57 | + assert_eq!(::std::mem::align_of::<Set>() , 4usize , concat ! ( |
| 58 | + "Alignment of template specialization: " , stringify ! ( Set ) |
| 59 | + )); |
| 60 | +} |
0 commit comments