/
constructors.rs
86 lines (85 loc) · 2.29 KB
/
constructors.rs
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#![allow(
dead_code,
non_snake_case,
non_camel_case_types,
non_upper_case_globals
)]
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct TestOverload {
pub _address: u8,
}
#[test]
fn bindgen_test_layout_TestOverload() {
assert_eq!(
::std::mem::size_of::<TestOverload>(),
1usize,
concat!("Size of: ", stringify!(TestOverload))
);
assert_eq!(
::std::mem::align_of::<TestOverload>(),
1usize,
concat!("Alignment of ", stringify!(TestOverload))
);
}
extern "C" {
#[link_name = "\u{1}_ZN12TestOverloadC1Ei"]
pub fn TestOverload_TestOverload(
this: *mut TestOverload,
arg1: ::std::os::raw::c_int,
);
}
extern "C" {
#[link_name = "\u{1}_ZN12TestOverloadC1Ed"]
pub fn TestOverload_TestOverload1(this: *mut TestOverload, arg1: f64);
}
impl TestOverload {
#[inline]
pub unsafe fn new(arg1: ::std::os::raw::c_int) -> Self {
unsafe {
let mut __bindgen_tmp = ::std::mem::MaybeUninit::uninit();
TestOverload_TestOverload(__bindgen_tmp.as_mut_ptr(), arg1);
__bindgen_tmp.assume_init()
}
}
#[inline]
pub unsafe fn new1(arg1: f64) -> Self {
unsafe {
let mut __bindgen_tmp = ::std::mem::MaybeUninit::uninit();
TestOverload_TestOverload1(__bindgen_tmp.as_mut_ptr(), arg1);
__bindgen_tmp.assume_init()
}
}
}
#[repr(C)]
#[derive(Debug, Default, Copy, Clone)]
pub struct TestPublicNoArgs {
pub _address: u8,
}
#[test]
fn bindgen_test_layout_TestPublicNoArgs() {
assert_eq!(
::std::mem::size_of::<TestPublicNoArgs>(),
1usize,
concat!("Size of: ", stringify!(TestPublicNoArgs))
);
assert_eq!(
::std::mem::align_of::<TestPublicNoArgs>(),
1usize,
concat!("Alignment of ", stringify!(TestPublicNoArgs))
);
}
extern "C" {
#[link_name = "\u{1}_ZN16TestPublicNoArgsC1Ev"]
pub fn TestPublicNoArgs_TestPublicNoArgs(this: *mut TestPublicNoArgs);
}
impl TestPublicNoArgs {
#[inline]
pub unsafe fn new() -> Self {
unsafe {
let mut __bindgen_tmp = ::std::mem::MaybeUninit::uninit();
TestPublicNoArgs_TestPublicNoArgs(__bindgen_tmp.as_mut_ptr());
__bindgen_tmp.assume_init()
}
}
}