1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
/* automatically generated by rust-bindgen */
#![allow(non_snake_case)]
#[repr(C)]
#[derive(Debug, Copy)]
pub struct A {
pub member_a: ::std::os::raw::c_int,
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct A_B {
pub member_b: ::std::os::raw::c_int,
}
#[test]
fn bindgen_test_layout_A_B() {
assert_eq!(::std::mem::size_of::<A_B>() , 4usize);
assert_eq!(::std::mem::align_of::<A_B>() , 4usize);
}
impl Clone for A_B {
fn clone(&self) -> Self { *self }
}
#[test]
fn bindgen_test_layout_A() {
assert_eq!(::std::mem::size_of::<A>() , 4usize);
assert_eq!(::std::mem::align_of::<A>() , 4usize);
}
impl Clone for A {
fn clone(&self) -> Self { *self }
}
extern "C" {
#[link_name = "var"]
pub static mut var: A_B;
}
#[repr(C)]
#[derive(Debug, Copy)]
pub struct D {
pub member: A_B,
}
#[test]
fn bindgen_test_layout_D() {
assert_eq!(::std::mem::size_of::<D>() , 4usize);
assert_eq!(::std::mem::align_of::<D>() , 4usize);
}
impl Clone for D {
fn clone(&self) -> Self { *self }
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Templated<T> {
pub member: T,
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct Templated_Templated_inner<T> {
pub member_ptr: *mut T,
}
|