| 
 | 1 | +/* automatically generated by rust-bindgen */  | 
 | 2 | + | 
 | 3 | +#![allow(  | 
 | 4 | +    dead_code,  | 
 | 5 | +    non_snake_case,  | 
 | 6 | +    non_camel_case_types,  | 
 | 7 | +    non_upper_case_globals  | 
 | 8 | +)]  | 
 | 9 | + | 
 | 10 | +#[repr(C)]  | 
 | 11 | +#[derive(Debug, Default, Copy, Clone)]  | 
 | 12 | +pub struct TestOverload {  | 
 | 13 | +    pub _address: u8,  | 
 | 14 | +}  | 
 | 15 | +#[test]  | 
 | 16 | +fn bindgen_test_layout_TestOverload() {  | 
 | 17 | +    assert_eq!(  | 
 | 18 | +        ::std::mem::size_of::<TestOverload>(),  | 
 | 19 | +        1usize,  | 
 | 20 | +        concat!("Size of: ", stringify!(TestOverload))  | 
 | 21 | +    );  | 
 | 22 | +    assert_eq!(  | 
 | 23 | +        ::std::mem::align_of::<TestOverload>(),  | 
 | 24 | +        1usize,  | 
 | 25 | +        concat!("Alignment of ", stringify!(TestOverload))  | 
 | 26 | +    );  | 
 | 27 | +}  | 
 | 28 | +extern "C" {  | 
 | 29 | +    /// Calling this should use `mem::unintialized()` and not `MaybeUninit()` as only rust 1.36 includes that.  | 
 | 30 | +    #[link_name = "\u{1}_ZN12TestOverloadC1Ei"]  | 
 | 31 | +    pub fn TestOverload_TestOverload(  | 
 | 32 | +        this: *mut TestOverload,  | 
 | 33 | +        arg1: ::std::os::raw::c_int,  | 
 | 34 | +    );  | 
 | 35 | +}  | 
 | 36 | +extern "C" {  | 
 | 37 | +    /// Calling this should use `mem::unintialized()` and not `MaybeUninit()` as only rust 1.36 includes that.  | 
 | 38 | +    #[link_name = "\u{1}_ZN12TestOverloadC1Ed"]  | 
 | 39 | +    pub fn TestOverload_TestOverload1(this: *mut TestOverload, arg1: f64);  | 
 | 40 | +}  | 
 | 41 | +impl TestOverload {  | 
 | 42 | +    #[inline]  | 
 | 43 | +    pub unsafe fn new(arg1: ::std::os::raw::c_int) -> Self {  | 
 | 44 | +        let mut __bindgen_tmp = ::std::mem::uninitialized();  | 
 | 45 | +        TestOverload_TestOverload(&mut __bindgen_tmp, arg1);  | 
 | 46 | +        __bindgen_tmp  | 
 | 47 | +    }  | 
 | 48 | +    #[inline]  | 
 | 49 | +    pub unsafe fn new1(arg1: f64) -> Self {  | 
 | 50 | +        let mut __bindgen_tmp = ::std::mem::uninitialized();  | 
 | 51 | +        TestOverload_TestOverload1(&mut __bindgen_tmp, arg1);  | 
 | 52 | +        __bindgen_tmp  | 
 | 53 | +    }  | 
 | 54 | +}  | 
 | 55 | +#[repr(C)]  | 
 | 56 | +#[derive(Debug, Default, Copy, Clone)]  | 
 | 57 | +pub struct TestPublicNoArgs {  | 
 | 58 | +    pub _address: u8,  | 
 | 59 | +}  | 
 | 60 | +#[test]  | 
 | 61 | +fn bindgen_test_layout_TestPublicNoArgs() {  | 
 | 62 | +    assert_eq!(  | 
 | 63 | +        ::std::mem::size_of::<TestPublicNoArgs>(),  | 
 | 64 | +        1usize,  | 
 | 65 | +        concat!("Size of: ", stringify!(TestPublicNoArgs))  | 
 | 66 | +    );  | 
 | 67 | +    assert_eq!(  | 
 | 68 | +        ::std::mem::align_of::<TestPublicNoArgs>(),  | 
 | 69 | +        1usize,  | 
 | 70 | +        concat!("Alignment of ", stringify!(TestPublicNoArgs))  | 
 | 71 | +    );  | 
 | 72 | +}  | 
 | 73 | +extern "C" {  | 
 | 74 | +    #[link_name = "\u{1}_ZN16TestPublicNoArgsC1Ev"]  | 
 | 75 | +    pub fn TestPublicNoArgs_TestPublicNoArgs(this: *mut TestPublicNoArgs);  | 
 | 76 | +}  | 
 | 77 | +impl TestPublicNoArgs {  | 
 | 78 | +    #[inline]  | 
 | 79 | +    pub unsafe fn new() -> Self {  | 
 | 80 | +        let mut __bindgen_tmp = ::std::mem::uninitialized();  | 
 | 81 | +        TestPublicNoArgs_TestPublicNoArgs(&mut __bindgen_tmp);  | 
 | 82 | +        __bindgen_tmp  | 
 | 83 | +    }  | 
 | 84 | +}  | 
0 commit comments