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
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
/* automatically generated by rust-bindgen 0.58.1 */

pub type size_t = ::std::os::raw::c_ulong;
pub type wchar_t = ::std::os::raw::c_int;
#[repr(C)]
#[repr(align(16))]
#[derive(Debug, Copy, Clone)]
pub struct max_align_t {
    pub __clang_max_align_nonce1: ::std::os::raw::c_longlong,
    pub __bindgen_padding_0: u64,
    pub __clang_max_align_nonce2: u128,
}
#[test]
fn bindgen_test_layout_max_align_t() {
    assert_eq!(
        ::std::mem::size_of::<max_align_t>(),
        32usize,
        concat!("Size of: ", stringify!(max_align_t))
    );
    assert_eq!(
        ::std::mem::align_of::<max_align_t>(),
        16usize,
        concat!("Alignment of ", stringify!(max_align_t))
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<max_align_t>())).__clang_max_align_nonce1 as *const _ as usize
        },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(max_align_t),
            "::",
            stringify!(__clang_max_align_nonce1)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<max_align_t>())).__clang_max_align_nonce2 as *const _ as usize
        },
        16usize,
        concat!(
            "Offset of field: ",
            stringify!(max_align_t),
            "::",
            stringify!(__clang_max_align_nonce2)
        )
    );
}
pub const SpglibError_SPGLIB_SUCCESS: SpglibError = 0;
pub const SpglibError_SPGERR_SPACEGROUP_SEARCH_FAILED: SpglibError = 1;
pub const SpglibError_SPGERR_CELL_STANDARDIZATION_FAILED: SpglibError = 2;
pub const SpglibError_SPGERR_SYMMETRY_OPERATION_SEARCH_FAILED: SpglibError = 3;
pub const SpglibError_SPGERR_ATOMS_TOO_CLOSE: SpglibError = 4;
pub const SpglibError_SPGERR_POINTGROUP_NOT_FOUND: SpglibError = 5;
pub const SpglibError_SPGERR_NIGGLI_FAILED: SpglibError = 6;
pub const SpglibError_SPGERR_DELAUNAY_FAILED: SpglibError = 7;
pub const SpglibError_SPGERR_ARRAY_SIZE_SHORTAGE: SpglibError = 8;
pub const SpglibError_SPGERR_NONE: SpglibError = 9;
pub type SpglibError = ::std::os::raw::c_uint;
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SpglibDataset {
    pub spacegroup_number: ::std::os::raw::c_int,
    pub hall_number: ::std::os::raw::c_int,
    pub international_symbol: [::std::os::raw::c_char; 11usize],
    pub hall_symbol: [::std::os::raw::c_char; 17usize],
    pub choice: [::std::os::raw::c_char; 6usize],
    pub transformation_matrix: [[f64; 3usize]; 3usize],
    pub origin_shift: [f64; 3usize],
    pub n_operations: ::std::os::raw::c_int,
    pub rotations: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
    pub translations: *mut [f64; 3usize],
    pub n_atoms: ::std::os::raw::c_int,
    pub wyckoffs: *mut ::std::os::raw::c_int,
    pub site_symmetry_symbols: *mut [::std::os::raw::c_char; 7usize],
    pub equivalent_atoms: *mut ::std::os::raw::c_int,
    pub crystallographic_orbits: *mut ::std::os::raw::c_int,
    pub primitive_lattice: [[f64; 3usize]; 3usize],
    pub mapping_to_primitive: *mut ::std::os::raw::c_int,
    pub n_std_atoms: ::std::os::raw::c_int,
    pub std_lattice: [[f64; 3usize]; 3usize],
    pub std_types: *mut ::std::os::raw::c_int,
    pub std_positions: *mut [f64; 3usize],
    pub std_rotation_matrix: [[f64; 3usize]; 3usize],
    pub std_mapping_to_primitive: *mut ::std::os::raw::c_int,
    pub pointgroup_symbol: [::std::os::raw::c_char; 6usize],
}
#[test]
fn bindgen_test_layout_SpglibDataset() {
    assert_eq!(
        ::std::mem::size_of::<SpglibDataset>(),
        472usize,
        concat!("Size of: ", stringify!(SpglibDataset))
    );
    assert_eq!(
        ::std::mem::align_of::<SpglibDataset>(),
        8usize,
        concat!("Alignment of ", stringify!(SpglibDataset))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<SpglibDataset>())).spacegroup_number as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibDataset),
            "::",
            stringify!(spacegroup_number)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<SpglibDataset>())).hall_number as *const _ as usize },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibDataset),
            "::",
            stringify!(hall_number)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<SpglibDataset>())).international_symbol as *const _ as usize
        },
        8usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibDataset),
            "::",
            stringify!(international_symbol)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<SpglibDataset>())).hall_symbol as *const _ as usize },
        19usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibDataset),
            "::",
            stringify!(hall_symbol)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<SpglibDataset>())).choice as *const _ as usize },
        36usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibDataset),
            "::",
            stringify!(choice)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<SpglibDataset>())).transformation_matrix as *const _ as usize
        },
        48usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibDataset),
            "::",
            stringify!(transformation_matrix)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<SpglibDataset>())).origin_shift as *const _ as usize },
        120usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibDataset),
            "::",
            stringify!(origin_shift)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<SpglibDataset>())).n_operations as *const _ as usize },
        144usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibDataset),
            "::",
            stringify!(n_operations)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<SpglibDataset>())).rotations as *const _ as usize },
        152usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibDataset),
            "::",
            stringify!(rotations)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<SpglibDataset>())).translations as *const _ as usize },
        160usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibDataset),
            "::",
            stringify!(translations)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<SpglibDataset>())).n_atoms as *const _ as usize },
        168usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibDataset),
            "::",
            stringify!(n_atoms)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<SpglibDataset>())).wyckoffs as *const _ as usize },
        176usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibDataset),
            "::",
            stringify!(wyckoffs)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<SpglibDataset>())).site_symmetry_symbols as *const _ as usize
        },
        184usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibDataset),
            "::",
            stringify!(site_symmetry_symbols)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<SpglibDataset>())).equivalent_atoms as *const _ as usize },
        192usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibDataset),
            "::",
            stringify!(equivalent_atoms)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<SpglibDataset>())).crystallographic_orbits as *const _ as usize
        },
        200usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibDataset),
            "::",
            stringify!(crystallographic_orbits)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<SpglibDataset>())).primitive_lattice as *const _ as usize },
        208usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibDataset),
            "::",
            stringify!(primitive_lattice)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<SpglibDataset>())).mapping_to_primitive as *const _ as usize
        },
        280usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibDataset),
            "::",
            stringify!(mapping_to_primitive)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<SpglibDataset>())).n_std_atoms as *const _ as usize },
        288usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibDataset),
            "::",
            stringify!(n_std_atoms)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<SpglibDataset>())).std_lattice as *const _ as usize },
        296usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibDataset),
            "::",
            stringify!(std_lattice)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<SpglibDataset>())).std_types as *const _ as usize },
        368usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibDataset),
            "::",
            stringify!(std_types)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<SpglibDataset>())).std_positions as *const _ as usize },
        376usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibDataset),
            "::",
            stringify!(std_positions)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<SpglibDataset>())).std_rotation_matrix as *const _ as usize
        },
        384usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibDataset),
            "::",
            stringify!(std_rotation_matrix)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<SpglibDataset>())).std_mapping_to_primitive as *const _ as usize
        },
        456usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibDataset),
            "::",
            stringify!(std_mapping_to_primitive)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<SpglibDataset>())).pointgroup_symbol as *const _ as usize },
        464usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibDataset),
            "::",
            stringify!(pointgroup_symbol)
        )
    );
}
#[repr(C)]
#[derive(Debug, Copy, Clone)]
pub struct SpglibSpacegroupType {
    pub number: ::std::os::raw::c_int,
    pub international_short: [::std::os::raw::c_char; 11usize],
    pub international_full: [::std::os::raw::c_char; 20usize],
    pub international: [::std::os::raw::c_char; 32usize],
    pub schoenflies: [::std::os::raw::c_char; 7usize],
    pub hall_symbol: [::std::os::raw::c_char; 17usize],
    pub choice: [::std::os::raw::c_char; 6usize],
    pub pointgroup_international: [::std::os::raw::c_char; 6usize],
    pub pointgroup_schoenflies: [::std::os::raw::c_char; 4usize],
    pub arithmetic_crystal_class_number: ::std::os::raw::c_int,
    pub arithmetic_crystal_class_symbol: [::std::os::raw::c_char; 7usize],
}
#[test]
fn bindgen_test_layout_SpglibSpacegroupType() {
    assert_eq!(
        ::std::mem::size_of::<SpglibSpacegroupType>(),
        120usize,
        concat!("Size of: ", stringify!(SpglibSpacegroupType))
    );
    assert_eq!(
        ::std::mem::align_of::<SpglibSpacegroupType>(),
        4usize,
        concat!("Alignment of ", stringify!(SpglibSpacegroupType))
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<SpglibSpacegroupType>())).number as *const _ as usize },
        0usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibSpacegroupType),
            "::",
            stringify!(number)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<SpglibSpacegroupType>())).international_short as *const _
                as usize
        },
        4usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibSpacegroupType),
            "::",
            stringify!(international_short)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<SpglibSpacegroupType>())).international_full as *const _ as usize
        },
        15usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibSpacegroupType),
            "::",
            stringify!(international_full)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<SpglibSpacegroupType>())).international as *const _ as usize
        },
        35usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibSpacegroupType),
            "::",
            stringify!(international)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<SpglibSpacegroupType>())).schoenflies as *const _ as usize
        },
        67usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibSpacegroupType),
            "::",
            stringify!(schoenflies)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<SpglibSpacegroupType>())).hall_symbol as *const _ as usize
        },
        74usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibSpacegroupType),
            "::",
            stringify!(hall_symbol)
        )
    );
    assert_eq!(
        unsafe { &(*(::std::ptr::null::<SpglibSpacegroupType>())).choice as *const _ as usize },
        91usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibSpacegroupType),
            "::",
            stringify!(choice)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<SpglibSpacegroupType>())).pointgroup_international as *const _
                as usize
        },
        97usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibSpacegroupType),
            "::",
            stringify!(pointgroup_international)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<SpglibSpacegroupType>())).pointgroup_schoenflies as *const _
                as usize
        },
        103usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibSpacegroupType),
            "::",
            stringify!(pointgroup_schoenflies)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<SpglibSpacegroupType>())).arithmetic_crystal_class_number
                as *const _ as usize
        },
        108usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibSpacegroupType),
            "::",
            stringify!(arithmetic_crystal_class_number)
        )
    );
    assert_eq!(
        unsafe {
            &(*(::std::ptr::null::<SpglibSpacegroupType>())).arithmetic_crystal_class_symbol
                as *const _ as usize
        },
        112usize,
        concat!(
            "Offset of field: ",
            stringify!(SpglibSpacegroupType),
            "::",
            stringify!(arithmetic_crystal_class_symbol)
        )
    );
}
extern "C" {
    pub fn spg_get_major_version() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spg_get_minor_version() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spg_get_micro_version() -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spg_get_error_code() -> SpglibError;
}
extern "C" {
    pub fn spg_get_error_message(spglib_error: SpglibError) -> *mut ::std::os::raw::c_char;
}
extern "C" {
    pub fn spg_get_dataset(
        lattice: *mut [f64; 3usize],
        position: *mut [f64; 3usize],
        types: *const ::std::os::raw::c_int,
        num_atom: ::std::os::raw::c_int,
        symprec: f64,
    ) -> *mut SpglibDataset;
}
extern "C" {
    pub fn spgat_get_dataset(
        lattice: *mut [f64; 3usize],
        position: *mut [f64; 3usize],
        types: *const ::std::os::raw::c_int,
        num_atom: ::std::os::raw::c_int,
        symprec: f64,
        angle_tolerance: f64,
    ) -> *mut SpglibDataset;
}
extern "C" {
    pub fn spg_get_dataset_with_hall_number(
        lattice: *mut [f64; 3usize],
        position: *mut [f64; 3usize],
        types: *const ::std::os::raw::c_int,
        num_atom: ::std::os::raw::c_int,
        hall_number: ::std::os::raw::c_int,
        symprec: f64,
    ) -> *mut SpglibDataset;
}
extern "C" {
    pub fn spgat_get_dataset_with_hall_number(
        lattice: *mut [f64; 3usize],
        position: *mut [f64; 3usize],
        types: *const ::std::os::raw::c_int,
        num_atom: ::std::os::raw::c_int,
        hall_number: ::std::os::raw::c_int,
        symprec: f64,
        angle_tolerance: f64,
    ) -> *mut SpglibDataset;
}
extern "C" {
    pub fn spg_free_dataset(dataset: *mut SpglibDataset);
}
extern "C" {
    pub fn spg_get_symmetry(
        rotation: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
        translation: *mut [f64; 3usize],
        max_size: ::std::os::raw::c_int,
        lattice: *mut [f64; 3usize],
        position: *mut [f64; 3usize],
        types: *const ::std::os::raw::c_int,
        num_atom: ::std::os::raw::c_int,
        symprec: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spgat_get_symmetry(
        rotation: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
        translation: *mut [f64; 3usize],
        max_size: ::std::os::raw::c_int,
        lattice: *mut [f64; 3usize],
        position: *mut [f64; 3usize],
        types: *const ::std::os::raw::c_int,
        num_atom: ::std::os::raw::c_int,
        symprec: f64,
        angle_tolerance: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spg_get_symmetry_with_collinear_spin(
        rotation: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
        translation: *mut [f64; 3usize],
        equivalent_atoms: *mut ::std::os::raw::c_int,
        max_size: ::std::os::raw::c_int,
        lattice: *mut [f64; 3usize],
        position: *mut [f64; 3usize],
        types: *const ::std::os::raw::c_int,
        spins: *const f64,
        num_atom: ::std::os::raw::c_int,
        symprec: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spgat_get_symmetry_with_collinear_spin(
        rotation: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
        translation: *mut [f64; 3usize],
        equivalent_atoms: *mut ::std::os::raw::c_int,
        max_size: ::std::os::raw::c_int,
        lattice: *mut [f64; 3usize],
        position: *mut [f64; 3usize],
        types: *const ::std::os::raw::c_int,
        spins: *const f64,
        num_atom: ::std::os::raw::c_int,
        symprec: f64,
        angle_tolerance: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spg_get_symmetry_with_site_tensors(
        rotation: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
        translation: *mut [f64; 3usize],
        equivalent_atoms: *mut ::std::os::raw::c_int,
        primitive_lattice: *mut [f64; 3usize],
        spin_flips: *mut ::std::os::raw::c_int,
        num_operations: ::std::os::raw::c_int,
        lattice: *mut [f64; 3usize],
        position: *mut [f64; 3usize],
        types: *const ::std::os::raw::c_int,
        tensors: *const f64,
        tensor_rank: ::std::os::raw::c_int,
        num_atom: ::std::os::raw::c_int,
        is_magnetic: ::std::os::raw::c_int,
        symprec: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spgat_get_symmetry_with_site_tensors(
        rotation: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
        translation: *mut [f64; 3usize],
        equivalent_atoms: *mut ::std::os::raw::c_int,
        primitive_lattice: *mut [f64; 3usize],
        spin_flips: *mut ::std::os::raw::c_int,
        num_operations: ::std::os::raw::c_int,
        lattice: *mut [f64; 3usize],
        position: *mut [f64; 3usize],
        types: *const ::std::os::raw::c_int,
        tensors: *const f64,
        tensor_rank: ::std::os::raw::c_int,
        num_atom: ::std::os::raw::c_int,
        is_magnetic: ::std::os::raw::c_int,
        symprec: f64,
        angle_tolerance: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spg_get_hall_number_from_symmetry(
        rotation: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
        translation: *mut [f64; 3usize],
        num_operations: ::std::os::raw::c_int,
        symprec: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spg_get_multiplicity(
        lattice: *mut [f64; 3usize],
        position: *mut [f64; 3usize],
        types: *const ::std::os::raw::c_int,
        num_atom: ::std::os::raw::c_int,
        symprec: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spgat_get_multiplicity(
        lattice: *mut [f64; 3usize],
        position: *mut [f64; 3usize],
        types: *const ::std::os::raw::c_int,
        num_atom: ::std::os::raw::c_int,
        symprec: f64,
        angle_tolerance: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spg_get_international(
        symbol: *mut ::std::os::raw::c_char,
        lattice: *mut [f64; 3usize],
        position: *mut [f64; 3usize],
        types: *const ::std::os::raw::c_int,
        num_atom: ::std::os::raw::c_int,
        symprec: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spgat_get_international(
        symbol: *mut ::std::os::raw::c_char,
        lattice: *mut [f64; 3usize],
        position: *mut [f64; 3usize],
        types: *const ::std::os::raw::c_int,
        num_atom: ::std::os::raw::c_int,
        symprec: f64,
        angle_tolerance: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spg_get_schoenflies(
        symbol: *mut ::std::os::raw::c_char,
        lattice: *mut [f64; 3usize],
        position: *mut [f64; 3usize],
        types: *const ::std::os::raw::c_int,
        num_atom: ::std::os::raw::c_int,
        symprec: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spgat_get_schoenflies(
        symbol: *mut ::std::os::raw::c_char,
        lattice: *mut [f64; 3usize],
        position: *mut [f64; 3usize],
        types: *const ::std::os::raw::c_int,
        num_atom: ::std::os::raw::c_int,
        symprec: f64,
        angle_tolerance: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spg_get_pointgroup(
        symbol: *mut ::std::os::raw::c_char,
        trans_mat: *mut [::std::os::raw::c_int; 3usize],
        rotations: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
        num_rotations: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spg_get_symmetry_from_database(
        rotations: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
        translations: *mut [f64; 3usize],
        hall_number: ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spg_get_spacegroup_type(hall_number: ::std::os::raw::c_int) -> SpglibSpacegroupType;
}
extern "C" {
    pub fn spg_standardize_cell(
        lattice: *mut [f64; 3usize],
        position: *mut [f64; 3usize],
        types: *mut ::std::os::raw::c_int,
        num_atom: ::std::os::raw::c_int,
        to_primitive: ::std::os::raw::c_int,
        no_idealize: ::std::os::raw::c_int,
        symprec: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spgat_standardize_cell(
        lattice: *mut [f64; 3usize],
        position: *mut [f64; 3usize],
        types: *mut ::std::os::raw::c_int,
        num_atom: ::std::os::raw::c_int,
        to_primitive: ::std::os::raw::c_int,
        no_idealize: ::std::os::raw::c_int,
        symprec: f64,
        angle_tolerance: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spg_find_primitive(
        lattice: *mut [f64; 3usize],
        position: *mut [f64; 3usize],
        types: *mut ::std::os::raw::c_int,
        num_atom: ::std::os::raw::c_int,
        symprec: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spgat_find_primitive(
        lattice: *mut [f64; 3usize],
        position: *mut [f64; 3usize],
        types: *mut ::std::os::raw::c_int,
        num_atom: ::std::os::raw::c_int,
        symprec: f64,
        angle_tolerance: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spg_refine_cell(
        lattice: *mut [f64; 3usize],
        position: *mut [f64; 3usize],
        types: *mut ::std::os::raw::c_int,
        num_atom: ::std::os::raw::c_int,
        symprec: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spgat_refine_cell(
        lattice: *mut [f64; 3usize],
        position: *mut [f64; 3usize],
        types: *mut ::std::os::raw::c_int,
        num_atom: ::std::os::raw::c_int,
        symprec: f64,
        angle_tolerance: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spg_delaunay_reduce(lattice: *mut [f64; 3usize], symprec: f64) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spg_get_grid_point_from_address(
        grid_address: *const ::std::os::raw::c_int,
        mesh: *const ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spg_get_dense_grid_point_from_address(
        grid_address: *const ::std::os::raw::c_int,
        mesh: *const ::std::os::raw::c_int,
    ) -> size_t;
}
extern "C" {
    pub fn spg_get_ir_reciprocal_mesh(
        grid_address: *mut [::std::os::raw::c_int; 3usize],
        ir_mapping_table: *mut ::std::os::raw::c_int,
        mesh: *const ::std::os::raw::c_int,
        is_shift: *const ::std::os::raw::c_int,
        is_time_reversal: ::std::os::raw::c_int,
        lattice: *mut [f64; 3usize],
        position: *mut [f64; 3usize],
        types: *const ::std::os::raw::c_int,
        num_atom: ::std::os::raw::c_int,
        symprec: f64,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spg_get_dense_ir_reciprocal_mesh(
        grid_address: *mut [::std::os::raw::c_int; 3usize],
        ir_mapping_table: *mut size_t,
        mesh: *const ::std::os::raw::c_int,
        is_shift: *const ::std::os::raw::c_int,
        is_time_reversal: ::std::os::raw::c_int,
        lattice: *mut [f64; 3usize],
        position: *mut [f64; 3usize],
        types: *const ::std::os::raw::c_int,
        num_atom: ::std::os::raw::c_int,
        symprec: f64,
    ) -> size_t;
}
extern "C" {
    pub fn spg_get_stabilized_reciprocal_mesh(
        grid_address: *mut [::std::os::raw::c_int; 3usize],
        ir_mapping_table: *mut ::std::os::raw::c_int,
        mesh: *const ::std::os::raw::c_int,
        is_shift: *const ::std::os::raw::c_int,
        is_time_reversal: ::std::os::raw::c_int,
        num_rot: ::std::os::raw::c_int,
        rotations: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
        num_q: ::std::os::raw::c_int,
        qpoints: *mut [f64; 3usize],
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spg_get_dense_stabilized_reciprocal_mesh(
        grid_address: *mut [::std::os::raw::c_int; 3usize],
        ir_mapping_table: *mut size_t,
        mesh: *const ::std::os::raw::c_int,
        is_shift: *const ::std::os::raw::c_int,
        is_time_reversal: ::std::os::raw::c_int,
        num_rot: ::std::os::raw::c_int,
        rotations: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
        num_q: ::std::os::raw::c_int,
        qpoints: *mut [f64; 3usize],
    ) -> size_t;
}
extern "C" {
    pub fn spg_get_grid_points_by_rotations(
        rot_grid_points: *mut ::std::os::raw::c_int,
        address_orig: *const ::std::os::raw::c_int,
        num_rot: ::std::os::raw::c_int,
        rot_reciprocal: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
        mesh: *const ::std::os::raw::c_int,
        is_shift: *const ::std::os::raw::c_int,
    );
}
extern "C" {
    pub fn spg_get_dense_grid_points_by_rotations(
        rot_grid_points: *mut size_t,
        address_orig: *const ::std::os::raw::c_int,
        num_rot: ::std::os::raw::c_int,
        rot_reciprocal: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
        mesh: *const ::std::os::raw::c_int,
        is_shift: *const ::std::os::raw::c_int,
    );
}
extern "C" {
    pub fn spg_get_BZ_grid_points_by_rotations(
        rot_grid_points: *mut ::std::os::raw::c_int,
        address_orig: *const ::std::os::raw::c_int,
        num_rot: ::std::os::raw::c_int,
        rot_reciprocal: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
        mesh: *const ::std::os::raw::c_int,
        is_shift: *const ::std::os::raw::c_int,
        bz_map: *const ::std::os::raw::c_int,
    );
}
extern "C" {
    pub fn spg_get_dense_BZ_grid_points_by_rotations(
        rot_grid_points: *mut size_t,
        address_orig: *const ::std::os::raw::c_int,
        num_rot: ::std::os::raw::c_int,
        rot_reciprocal: *mut [[::std::os::raw::c_int; 3usize]; 3usize],
        mesh: *const ::std::os::raw::c_int,
        is_shift: *const ::std::os::raw::c_int,
        bz_map: *const size_t,
    );
}
extern "C" {
    pub fn spg_relocate_BZ_grid_address(
        bz_grid_address: *mut [::std::os::raw::c_int; 3usize],
        bz_map: *mut ::std::os::raw::c_int,
        grid_address: *mut [::std::os::raw::c_int; 3usize],
        mesh: *const ::std::os::raw::c_int,
        rec_lattice: *mut [f64; 3usize],
        is_shift: *const ::std::os::raw::c_int,
    ) -> ::std::os::raw::c_int;
}
extern "C" {
    pub fn spg_relocate_dense_BZ_grid_address(
        bz_grid_address: *mut [::std::os::raw::c_int; 3usize],
        bz_map: *mut size_t,
        grid_address: *mut [::std::os::raw::c_int; 3usize],
        mesh: *const ::std::os::raw::c_int,
        rec_lattice: *mut [f64; 3usize],
        is_shift: *const ::std::os::raw::c_int,
    ) -> size_t;
}
extern "C" {
    pub fn spg_niggli_reduce(lattice: *mut [f64; 3usize], symprec: f64) -> ::std::os::raw::c_int;
}