1
2
3
/* automatically generated by rust-bindgen */

pub type __uint8_t = :: std :: os :: raw :: c_uchar ; # [ repr ( C ) ] # [ derive ( Debug ) ] pub struct ExportResult { pub entries : usize , pub names : * mut * mut :: std :: os :: raw :: c_char , pub bytes : * mut * mut u8 , pub sizes : * mut usize , } # [ test ] fn bindgen_test_layout_ExportResult ( ) { assert_eq ! ( :: std :: mem :: size_of :: < ExportResult > ( ) , 32usize , concat ! ( "Size of: " , stringify ! ( ExportResult ) ) ) ; assert_eq ! ( :: std :: mem :: align_of :: < ExportResult > ( ) , 8usize , concat ! ( "Alignment of " , stringify ! ( ExportResult ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ExportResult > ( ) ) ) . entries as * const _ as usize } , 0usize , concat ! ( "Offset of field: " , stringify ! ( ExportResult ) , "::" , stringify ! ( entries ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ExportResult > ( ) ) ) . names as * const _ as usize } , 8usize , concat ! ( "Offset of field: " , stringify ! ( ExportResult ) , "::" , stringify ! ( names ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ExportResult > ( ) ) ) . bytes as * const _ as usize } , 16usize , concat ! ( "Offset of field: " , stringify ! ( ExportResult ) , "::" , stringify ! ( bytes ) ) ) ; assert_eq ! ( unsafe { & ( * ( :: std :: ptr :: null :: < ExportResult > ( ) ) ) . sizes as * const _ as usize } , 24usize , concat ! ( "Offset of field: " , stringify ! ( ExportResult ) , "::" , stringify ! ( sizes ) ) ) ; } extern "C" { # [ link_name = "\u{1}__ZN12ExportResult6resizeEm" ] pub fn ExportResult_resize ( this : * mut ExportResult , n : usize ) ; } extern "C" { # [ link_name = "\u{1}__ZN12ExportResultC1Ev" ] pub fn ExportResult_ExportResult ( this : * mut ExportResult ) ; } extern "C" { # [ link_name = "\u{1}__ZN12ExportResultD1Ev" ] pub fn ExportResult_ExportResult_destructor ( this : * mut ExportResult ) ; } impl Default for ExportResult { fn default ( ) -> Self { unsafe { :: std :: mem :: zeroed ( ) } } } impl ExportResult { # [ inline ] pub unsafe fn resize ( & mut self , n : usize ) { ExportResult_resize ( self , n ) } # [ inline ] pub unsafe fn new ( ) -> Self { let mut __bindgen_tmp = :: std :: mem :: uninitialized ( ) ; ExportResult_ExportResult ( & mut __bindgen_tmp ) ; __bindgen_tmp } # [ inline ] pub unsafe fn destruct ( & mut self ) { ExportResult_ExportResult_destructor ( self ) } }