1- /* automatically generated by rust-bindgen 0.55 .1 */
1+ /* automatically generated by rust-bindgen 0.59 .1 */
22
33#[ repr( C ) ]
44#[ derive( Copy , Clone , Debug , Default , Eq , Hash , Ord , PartialEq , PartialOrd ) ]
5- pub struct __BindgenBitfieldUnit < Storage , Align > {
5+ pub struct __BindgenBitfieldUnit < Storage > {
66 storage : Storage ,
7- align : [ Align ; 0 ] ,
87}
9- impl < Storage , Align > __BindgenBitfieldUnit < Storage , Align > {
8+ impl < Storage > __BindgenBitfieldUnit < Storage > {
109 #[ inline]
1110 pub const fn new ( storage : Storage ) -> Self {
12- Self { storage, align : [ ] }
11+ Self { storage }
1312 }
1413}
15- impl < Storage , Align > __BindgenBitfieldUnit < Storage , Align >
14+ impl < Storage > __BindgenBitfieldUnit < Storage >
1615where
1716 Storage : AsRef < [ u8 ] > + AsMut < [ u8 ] > ,
1817{
@@ -557,7 +556,6 @@ pub type __darwin_ct_rune_t = ::std::os::raw::c_int;
557556pub union __mbstate_t {
558557 pub __mbstate8 : [ :: std:: os:: raw:: c_char ; 128usize ] ,
559558 pub _mbstateL : :: std:: os:: raw:: c_longlong ,
560- _bindgen_union_align : [ u64 ; 16usize ] ,
561559}
562560#[ test]
563561fn bindgen_test_layout___mbstate_t ( ) {
@@ -680,7 +678,7 @@ fn bindgen_test_layout___darwin_pthread_handler_rec() {
680678 ) ;
681679}
682680#[ repr( C ) ]
683- #[ derive( Copy , Clone ) ]
681+ #[ derive( Debug , Copy , Clone ) ]
684682pub struct _opaque_pthread_attr_t {
685683 pub __sig : :: std:: os:: raw:: c_long ,
686684 pub __opaque : [ :: std:: os:: raw:: c_char ; 56usize ] ,
@@ -719,7 +717,7 @@ fn bindgen_test_layout__opaque_pthread_attr_t() {
719717 ) ;
720718}
721719#[ repr( C ) ]
722- #[ derive( Copy , Clone ) ]
720+ #[ derive( Debug , Copy , Clone ) ]
723721pub struct _opaque_pthread_cond_t {
724722 pub __sig : :: std:: os:: raw:: c_long ,
725723 pub __opaque : [ :: std:: os:: raw:: c_char ; 40usize ] ,
@@ -801,7 +799,7 @@ fn bindgen_test_layout__opaque_pthread_condattr_t() {
801799 ) ;
802800}
803801#[ repr( C ) ]
804- #[ derive( Copy , Clone ) ]
802+ #[ derive( Debug , Copy , Clone ) ]
805803pub struct _opaque_pthread_mutex_t {
806804 pub __sig : :: std:: os:: raw:: c_long ,
807805 pub __opaque : [ :: std:: os:: raw:: c_char ; 56usize ] ,
@@ -924,7 +922,7 @@ fn bindgen_test_layout__opaque_pthread_once_t() {
924922 ) ;
925923}
926924#[ repr( C ) ]
927- #[ derive( Copy , Clone ) ]
925+ #[ derive( Debug , Copy , Clone ) ]
928926pub struct _opaque_pthread_rwlock_t {
929927 pub __sig : :: std:: os:: raw:: c_long ,
930928 pub __opaque : [ :: std:: os:: raw:: c_char ; 192usize ] ,
@@ -1008,7 +1006,7 @@ fn bindgen_test_layout__opaque_pthread_rwlockattr_t() {
10081006 ) ;
10091007}
10101008#[ repr( C ) ]
1011- #[ derive( Copy , Clone ) ]
1009+ #[ derive( Debug , Copy , Clone ) ]
10121010pub struct _opaque_pthread_t {
10131011 pub __sig : :: std:: os:: raw:: c_long ,
10141012 pub __cleanup_stack : * mut __darwin_pthread_handler_rec ,
@@ -1073,7 +1071,7 @@ pub type __darwin_nl_item = ::std::os::raw::c_int;
10731071pub type __darwin_wctrans_t = :: std:: os:: raw:: c_int ;
10741072pub type __darwin_wctype_t = __uint32_t ;
10751073#[ repr( u32 ) ]
1076- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
1074+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
10771075pub enum idtype_t {
10781076 P_ALL = 0 ,
10791077 P_PID = 1 ,
@@ -1390,7 +1388,7 @@ fn bindgen_test_layout___darwin_arm_thread_state64() {
13901388 ) ;
13911389}
13921390#[ repr( C ) ]
1393- #[ derive( Copy , Clone ) ]
1391+ #[ derive( Debug , Copy , Clone ) ]
13941392pub struct __darwin_arm_vfp_state {
13951393 pub __r : [ __uint32_t ; 64usize ] ,
13961394 pub __fpscr : __uint32_t ,
@@ -1536,7 +1534,7 @@ fn bindgen_test_layout___darwin_arm_neon_state() {
15361534}
15371535#[ repr( C ) ]
15381536#[ repr( align( 64 ) ) ]
1539- #[ derive( Copy , Clone ) ]
1537+ #[ derive( Debug , Copy , Clone ) ]
15401538pub struct __darwin_arm_amx_state_v1 {
15411539 pub __x : [ [ __uint8_t ; 64usize ] ; 8usize ] ,
15421540 pub __y : [ [ __uint8_t ; 64usize ] ; 8usize ] ,
@@ -1885,7 +1883,7 @@ fn bindgen_test_layout___darwin_arm_cpmu_state64() {
18851883 ) ;
18861884}
18871885#[ repr( C ) ]
1888- #[ derive( Copy , Clone ) ]
1886+ #[ derive( Debug , Copy , Clone ) ]
18891887pub struct __darwin_mcontext32 {
18901888 pub __es : __darwin_arm_exception_state ,
18911889 pub __ss : __darwin_arm_thread_state ,
@@ -2129,7 +2127,6 @@ pub type uid_t = __darwin_uid_t;
21292127pub union sigval {
21302128 pub sival_int : :: std:: os:: raw:: c_int ,
21312129 pub sival_ptr : * mut :: std:: os:: raw:: c_void ,
2132- _bindgen_union_align : u64 ,
21332130}
21342131#[ test]
21352132fn bindgen_test_layout_sigval ( ) {
@@ -2377,7 +2374,6 @@ pub union __sigaction_u {
23772374 arg3 : * mut :: std:: os:: raw:: c_void ,
23782375 ) ,
23792376 > ,
2380- _bindgen_union_align : u64 ,
23812377}
23822378#[ test]
23832379fn bindgen_test_layout___sigaction_u ( ) {
@@ -5031,13 +5027,13 @@ pub union wait {
50315027 pub w_status : :: std:: os:: raw:: c_int ,
50325028 pub w_T : wait__bindgen_ty_1 ,
50335029 pub w_S : wait__bindgen_ty_2 ,
5034- _bindgen_union_align : u32 ,
50355030}
50365031#[ repr( C ) ]
50375032#[ repr( align( 4 ) ) ]
50385033#[ derive( Debug , Copy , Clone ) ]
50395034pub struct wait__bindgen_ty_1 {
5040- pub _bitfield_1 : __BindgenBitfieldUnit < [ u8 ; 4usize ] , u16 > ,
5035+ pub _bitfield_align_1 : [ u16 ; 0 ] ,
5036+ pub _bitfield_1 : __BindgenBitfieldUnit < [ u8 ; 4usize ] > ,
50415037}
50425038#[ test]
50435039fn bindgen_test_layout_wait__bindgen_ty_1 ( ) {
@@ -5103,9 +5099,8 @@ impl wait__bindgen_ty_1 {
51035099 w_Coredump : :: std:: os:: raw:: c_uint ,
51045100 w_Retcode : :: std:: os:: raw:: c_uint ,
51055101 w_Filler : :: std:: os:: raw:: c_uint ,
5106- ) -> __BindgenBitfieldUnit < [ u8 ; 4usize ] , u16 > {
5107- let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit < [ u8 ; 4usize ] , u16 > =
5108- Default :: default ( ) ;
5102+ ) -> __BindgenBitfieldUnit < [ u8 ; 4usize ] > {
5103+ let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit < [ u8 ; 4usize ] > = Default :: default ( ) ;
51095104 __bindgen_bitfield_unit. set ( 0usize , 7u8 , {
51105105 let w_Termsig: u32 = unsafe { :: std:: mem:: transmute ( w_Termsig) } ;
51115106 w_Termsig as u64
@@ -5129,7 +5124,8 @@ impl wait__bindgen_ty_1 {
51295124#[ repr( align( 4 ) ) ]
51305125#[ derive( Debug , Copy , Clone ) ]
51315126pub struct wait__bindgen_ty_2 {
5132- pub _bitfield_1 : __BindgenBitfieldUnit < [ u8 ; 4usize ] , u16 > ,
5127+ pub _bitfield_align_1 : [ u16 ; 0 ] ,
5128+ pub _bitfield_1 : __BindgenBitfieldUnit < [ u8 ; 4usize ] > ,
51335129}
51345130#[ test]
51355131fn bindgen_test_layout_wait__bindgen_ty_2 ( ) {
@@ -5183,9 +5179,8 @@ impl wait__bindgen_ty_2 {
51835179 w_Stopval : :: std:: os:: raw:: c_uint ,
51845180 w_Stopsig : :: std:: os:: raw:: c_uint ,
51855181 w_Filler : :: std:: os:: raw:: c_uint ,
5186- ) -> __BindgenBitfieldUnit < [ u8 ; 4usize ] , u16 > {
5187- let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit < [ u8 ; 4usize ] , u16 > =
5188- Default :: default ( ) ;
5182+ ) -> __BindgenBitfieldUnit < [ u8 ; 4usize ] > {
5183+ let mut __bindgen_bitfield_unit: __BindgenBitfieldUnit < [ u8 ; 4usize ] > = Default :: default ( ) ;
51895184 __bindgen_bitfield_unit. set ( 0usize , 8u8 , {
51905185 let w_Stopval: u32 = unsafe { :: std:: mem:: transmute ( w_Stopval) } ;
51915186 w_Stopval as u64
@@ -6319,7 +6314,7 @@ extern "C" {
63196314 pub fn flsll ( arg1 : :: std:: os:: raw:: c_longlong ) -> :: std:: os:: raw:: c_int ;
63206315}
63216316#[ repr( u32 ) ]
6322- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
6317+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
63236318pub enum ONNXTensorElementDataType {
63246319 ONNX_TENSOR_ELEMENT_DATA_TYPE_UNDEFINED = 0 ,
63256320 ONNX_TENSOR_ELEMENT_DATA_TYPE_FLOAT = 1 ,
@@ -6340,7 +6335,7 @@ pub enum ONNXTensorElementDataType {
63406335 ONNX_TENSOR_ELEMENT_DATA_TYPE_BFLOAT16 = 16 ,
63416336}
63426337#[ repr( u32 ) ]
6343- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
6338+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
63446339pub enum ONNXType {
63456340 ONNX_TYPE_UNKNOWN = 0 ,
63466341 ONNX_TYPE_TENSOR = 1 ,
@@ -6350,7 +6345,7 @@ pub enum ONNXType {
63506345 ONNX_TYPE_SPARSETENSOR = 5 ,
63516346}
63526347#[ repr( u32 ) ]
6353- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
6348+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
63546349pub enum OrtLoggingLevel {
63556350 ORT_LOGGING_LEVEL_VERBOSE = 0 ,
63566351 ORT_LOGGING_LEVEL_INFO = 1 ,
@@ -6359,7 +6354,7 @@ pub enum OrtLoggingLevel {
63596354 ORT_LOGGING_LEVEL_FATAL = 4 ,
63606355}
63616356#[ repr( u32 ) ]
6362- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
6357+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
63636358pub enum OrtErrorCode {
63646359 ORT_OK = 0 ,
63656360 ORT_FAIL = 1 ,
@@ -6543,21 +6538,21 @@ pub type OrtLoggingFunction = ::std::option::Option<
65436538 ) ,
65446539> ;
65456540#[ repr( u32 ) ]
6546- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
6541+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
65476542pub enum GraphOptimizationLevel {
65486543 ORT_DISABLE_ALL = 0 ,
65496544 ORT_ENABLE_BASIC = 1 ,
65506545 ORT_ENABLE_EXTENDED = 2 ,
65516546 ORT_ENABLE_ALL = 99 ,
65526547}
65536548#[ repr( u32 ) ]
6554- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
6549+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
65556550pub enum ExecutionMode {
65566551 ORT_SEQUENTIAL = 0 ,
65576552 ORT_PARALLEL = 1 ,
65586553}
65596554#[ repr( u32 ) ]
6560- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
6555+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
65616556pub enum OrtLanguageProjection {
65626557 ORT_PROJECTION_C = 0 ,
65636558 ORT_PROJECTION_CPLUSPLUS = 1 ,
@@ -6578,7 +6573,7 @@ pub struct OrtKernelContext {
65786573 _unused : [ u8 ; 0 ] ,
65796574}
65806575#[ repr( i32 ) ]
6581- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
6576+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
65826577pub enum OrtAllocatorType {
65836578 Invalid = -1 ,
65846579 OrtDeviceAllocator = 0 ,
@@ -6590,14 +6585,14 @@ impl OrtMemType {
65906585#[ repr( i32 ) ]
65916586#[ doc = " memory types for allocator, exec provider specific types should be extended in each provider" ]
65926587#[ doc = " Whenever this struct is updated, please also update the MakeKey function in onnxruntime/core/framework/execution_provider.cc" ]
6593- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
6588+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
65946589pub enum OrtMemType {
65956590 OrtMemTypeCPUInput = -2 ,
65966591 OrtMemTypeCPUOutput = -1 ,
65976592 OrtMemTypeDefault = 0 ,
65986593}
65996594#[ repr( u32 ) ]
6600- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
6595+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
66016596pub enum OrtCudnnConvAlgoSearch {
66026597 EXHAUSTIVE = 0 ,
66036598 HEURISTIC = 1 ,
@@ -9994,7 +9989,7 @@ fn bindgen_test_layout_OrtApi() {
99949989 ) ;
99959990}
99969991#[ repr( u32 ) ]
9997- #[ derive( Debug , Copy , Clone , PartialEq , Eq , Hash ) ]
9992+ #[ derive( Debug , Copy , Clone , Hash , PartialEq , Eq ) ]
99989993pub enum OrtCustomOpInputOutputCharacteristic {
99999994 INPUT_OUTPUT_REQUIRED = 0 ,
100009995 INPUT_OUTPUT_OPTIONAL = 1 ,
0 commit comments