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
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
/*******************************************************************************
*
* Copyright (c) 2025 - 2026 Haixing Hu.
*
* SPDX-License-Identifier: Apache-2.0
*
* Licensed under the Apache License, Version 2.0.
*
******************************************************************************/
//! Type-specific append accessors for `MultiValues`.
use std::collections::HashMap;
use std::time::Duration;
use bigdecimal::BigDecimal;
use chrono::{
DateTime,
NaiveDate,
NaiveDateTime,
NaiveTime,
Utc,
};
use num_bigint::BigInt;
use url::Url;
use qubit_datatype::DataType;
use crate::value_error::{
ValueError,
ValueResult,
};
use super::multi_values::MultiValues;
impl MultiValues {
// ========================================================================
// Add value operations
// ========================================================================
impl_add_single_value! {
/// Add a boolean value
///
/// # Parameters
///
/// * `value` - The boolean value to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
///
/// # Example
///
/// ```rust
/// use qubit_value::MultiValues;
///
/// let mut values = MultiValues::Bool(vec![true]);
/// values.add_bool(false).unwrap();
/// assert_eq!(values.count(), 2);
/// ```
add_bool, Bool, bool, DataType::Bool
}
impl_add_single_value! {
/// Add a character value
///
/// # Parameters
///
/// * `value` - The character value to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_char, Char, char, DataType::Char
}
impl_add_single_value! {
/// Add an int8 value
///
/// # Parameters
///
/// * `value` - The int8 value to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_int8, Int8, i8, DataType::Int8
}
impl_add_single_value! {
/// Add an int16 value
///
/// # Parameters
///
/// * `value` - The int16 value to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_int16, Int16, i16, DataType::Int16
}
impl_add_single_value! {
/// Add an int32 value
///
/// # Parameters
///
/// * `value` - The int32 value to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_int32, Int32, i32, DataType::Int32
}
impl_add_single_value! {
/// Add an int64 value
///
/// # Parameters
///
/// * `value` - The int64 value to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_int64, Int64, i64, DataType::Int64
}
impl_add_single_value! {
/// Add an int128 value
///
/// # Parameters
///
/// * `value` - The int128 value to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_int128, Int128, i128, DataType::Int128
}
impl_add_single_value! {
/// Add a uint8 value
///
/// # Parameters
///
/// * `value` - The uint8 value to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_uint8, UInt8, u8, DataType::UInt8
}
impl_add_single_value! {
/// Add a uint16 value
///
/// # Parameters
///
/// * `value` - The uint16 value to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_uint16, UInt16, u16, DataType::UInt16
}
impl_add_single_value! {
/// Add a uint32 value
///
/// # Parameters
///
/// * `value` - The uint32 value to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_uint32, UInt32, u32, DataType::UInt32
}
impl_add_single_value! {
/// Add a uint64 value
///
/// # Parameters
///
/// * `value` - The uint64 value to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_uint64, UInt64, u64, DataType::UInt64
}
impl_add_single_value! {
/// Add a uint128 value
///
/// # Parameters
///
/// * `value` - The uint128 value to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_uint128, UInt128, u128, DataType::UInt128
}
impl_add_single_value! {
/// Add a float32 value
///
/// # Parameters
///
/// * `value` - The float32 value to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_float32, Float32, f32, DataType::Float32
}
impl_add_single_value! {
/// Add a float64 value
///
/// # Parameters
///
/// * `value` - The float64 value to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_float64, Float64, f64, DataType::Float64
}
impl_add_single_value! {
/// Add a string
///
/// # Parameters
///
/// * `value` - The string to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_string, String, String, DataType::String
}
impl_add_single_value! {
/// Add a date value
///
/// # Parameters
///
/// * `value` - The date value to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_date, Date, NaiveDate, DataType::Date
}
impl_add_single_value! {
/// Add a time value
///
/// # Parameters
///
/// * `value` - The time value to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_time, Time, NaiveTime, DataType::Time
}
impl_add_single_value! {
/// Add a datetime value
///
/// # Parameters
///
/// * `value` - The datetime value to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_datetime, DateTime, NaiveDateTime, DataType::DateTime
}
impl_add_single_value! {
/// Add a UTC instant value
///
/// # Parameters
///
/// * `value` - The UTC instant value to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_instant, Instant, DateTime<Utc>, DataType::Instant
}
impl_add_single_value! {
/// Add a big integer value
///
/// # Parameters
///
/// * `value` - The big integer value to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_biginteger, BigInteger, BigInt, DataType::BigInteger
}
impl_add_single_value! {
/// Add a big decimal value
///
/// # Parameters
///
/// * `value` - The big decimal value to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_bigdecimal, BigDecimal, BigDecimal, DataType::BigDecimal
}
impl_add_single_value! {
/// Add an isize value
add_intsize, IntSize, isize, DataType::IntSize
}
impl_add_single_value! {
/// Add a usize value
add_uintsize, UIntSize, usize, DataType::UIntSize
}
impl_add_single_value! {
/// Add a Duration value
add_duration, Duration, Duration, DataType::Duration
}
impl_add_single_value! {
/// Add a Url value
add_url, Url, Url, DataType::Url
}
impl_add_single_value! {
/// Add a StringMap value
add_string_map, StringMap, HashMap<String, String>, DataType::StringMap
}
impl_add_single_value! {
/// Add a Json value
add_json, Json, serde_json::Value, DataType::Json
}
// ========================================================================
// Add multiple values operations
// ========================================================================
impl_add_multi_values! {
/// Add multiple boolean values
///
/// # Parameters
///
/// * `values` - The list of boolean values to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
///
/// # Example
///
/// ```rust
/// use qubit_value::MultiValues;
///
/// let mut values = MultiValues::Bool(vec![true]);
/// values.add_bools(vec![false, true]).unwrap();
/// assert_eq!(values.get_bools().unwrap(), &[true, false, true]);
/// ```
add_bools, Bool, bool, DataType::Bool
}
impl_add_multi_values! {
/// Add multiple character values
///
/// # Parameters
///
/// * `values` - The list of character values to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_chars, Char, char, DataType::Char
}
impl_add_multi_values! {
/// Add multiple int8 values
///
/// # Parameters
///
/// * `values` - The list of int8 values to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_int8s, Int8, i8, DataType::Int8
}
impl_add_multi_values! {
/// Add multiple int16 values
///
/// # Parameters
///
/// * `values` - The list of int16 values to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_int16s, Int16, i16, DataType::Int16
}
impl_add_multi_values! {
/// Add multiple int32 values
///
/// # Parameters
///
/// * `values` - The list of int32 values to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_int32s, Int32, i32, DataType::Int32
}
impl_add_multi_values! {
/// Add multiple int64 values
///
/// # Parameters
///
/// * `values` - The list of int64 values to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_int64s, Int64, i64, DataType::Int64
}
impl_add_multi_values! {
/// Add multiple int128 values
///
/// # Parameters
///
/// * `values` - The list of int128 values to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_int128s, Int128, i128, DataType::Int128
}
impl_add_multi_values! {
/// Add multiple uint8 values
///
/// # Parameters
///
/// * `values` - The list of uint8 values to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_uint8s, UInt8, u8, DataType::UInt8
}
impl_add_multi_values! {
/// Add multiple uint16 values
///
/// # Parameters
///
/// * `values` - The list of uint16 values to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_uint16s, UInt16, u16, DataType::UInt16
}
impl_add_multi_values! {
/// Add multiple uint32 values
///
/// # Parameters
///
/// * `values` - The list of uint32 values to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_uint32s, UInt32, u32, DataType::UInt32
}
impl_add_multi_values! {
/// Add multiple uint64 values
///
/// # Parameters
///
/// * `values` - The list of uint64 values to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_uint64s, UInt64, u64, DataType::UInt64
}
impl_add_multi_values! {
/// Add multiple uint128 values
///
/// # Parameters
///
/// * `values` - The list of uint128 values to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_uint128s, UInt128, u128, DataType::UInt128
}
impl_add_multi_values! {
/// Add multiple float32 values
///
/// # Parameters
///
/// * `values` - The list of float32 values to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_float32s, Float32, f32, DataType::Float32
}
impl_add_multi_values! {
/// Add multiple float64 values
///
/// # Parameters
///
/// * `values` - The list of float64 values to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_float64s, Float64, f64, DataType::Float64
}
impl_add_multi_values! {
/// Add multiple string values
///
/// # Parameters
///
/// * `values` - The list of string values to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
///
/// # Example
///
/// ```rust
/// use qubit_value::MultiValues;
///
/// let mut values = MultiValues::String(vec!["hello".to_string()]);
/// values.add_strings(vec!["world".to_string(), "rust".to_string()]).unwrap();
/// assert_eq!(values.get_strings().unwrap(), &["hello", "world", "rust"]);
/// ```
add_strings, String, String, DataType::String
}
impl_add_multi_values! {
/// Add multiple date values
///
/// # Parameters
///
/// * `values` - The list of date values to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_dates, Date, NaiveDate, DataType::Date
}
impl_add_multi_values! {
/// Add multiple time values
///
/// # Parameters
///
/// * `values` - The list of time values to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_times, Time, NaiveTime, DataType::Time
}
impl_add_multi_values! {
/// Add multiple datetime values
///
/// # Parameters
///
/// * `values` - The list of datetime values to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_datetimes, DateTime, NaiveDateTime, DataType::DateTime
}
impl_add_multi_values! {
/// Add multiple UTC instant values
///
/// # Parameters
///
/// * `values` - The list of UTC instant values to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_instants, Instant, DateTime<Utc>, DataType::Instant
}
impl_add_multi_values! {
/// Add multiple big integer values
///
/// # Parameters
///
/// * `values` - The list of big integer values to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_bigintegers, BigInteger, BigInt, DataType::BigInteger
}
impl_add_multi_values! {
/// Add multiple big decimal values
///
/// # Parameters
///
/// * `values` - The list of big decimal values to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_bigdecimals, BigDecimal, BigDecimal, DataType::BigDecimal
}
impl_add_multi_values! {
/// Add multiple isize values
add_intsizes, IntSize, isize, DataType::IntSize
}
impl_add_multi_values! {
/// Add multiple usize values
add_uintsizes, UIntSize, usize, DataType::UIntSize
}
impl_add_multi_values! {
/// Add multiple Duration values
add_durations, Duration, Duration, DataType::Duration
}
impl_add_multi_values! {
/// Add multiple Url values
add_urls, Url, Url, DataType::Url
}
impl_add_multi_values! {
/// Add multiple StringMap values
add_string_maps, StringMap, HashMap<String, String>, DataType::StringMap
}
impl_add_multi_values! {
/// Add multiple Json values
add_jsons, Json, serde_json::Value, DataType::Json
}
// ========================================================================
// Add multiple values via slice operations
// ========================================================================
impl_add_multi_values_slice! {
/// Add multiple boolean values via slice
///
/// # Parameters
///
/// * `values` - The boolean value slice to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_bools_slice, Bool, bool, DataType::Bool
}
impl_add_multi_values_slice! {
/// Add multiple character values via slice
///
/// # Parameters
///
/// * `values` - The character value slice to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_chars_slice, Char, char, DataType::Char
}
impl_add_multi_values_slice! {
/// Add multiple int8 values via slice
///
/// # Parameters
///
/// * `values` - The int8 value slice to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_int8s_slice, Int8, i8, DataType::Int8
}
impl_add_multi_values_slice! {
/// Add multiple int16 values via slice
///
/// # Parameters
///
/// * `values` - The int16 value slice to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_int16s_slice, Int16, i16, DataType::Int16
}
impl_add_multi_values_slice! {
/// Add multiple int32 values via slice
///
/// # Parameters
///
/// * `values` - The int32 value slice to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_int32s_slice, Int32, i32, DataType::Int32
}
impl_add_multi_values_slice! {
/// Add multiple int64 values via slice
///
/// # Parameters
///
/// * `values` - The int64 value slice to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_int64s_slice, Int64, i64, DataType::Int64
}
impl_add_multi_values_slice! {
/// Add multiple int128 values via slice
///
/// # Parameters
///
/// * `values` - The int128 value slice to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_int128s_slice, Int128, i128, DataType::Int128
}
impl_add_multi_values_slice! {
/// Add multiple uint8 values via slice
///
/// # Parameters
///
/// * `values` - The uint8 value slice to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_uint8s_slice, UInt8, u8, DataType::UInt8
}
impl_add_multi_values_slice! {
/// Add multiple uint16 values via slice
///
/// # Parameters
///
/// * `values` - The uint16 value slice to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_uint16s_slice, UInt16, u16, DataType::UInt16
}
impl_add_multi_values_slice! {
/// Add multiple uint32 values via slice
///
/// # Parameters
///
/// * `values` - The uint32 value slice to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_uint32s_slice, UInt32, u32, DataType::UInt32
}
impl_add_multi_values_slice! {
/// Add multiple uint64 values via slice
///
/// # Parameters
///
/// * `values` - The uint64 value slice to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_uint64s_slice, UInt64, u64, DataType::UInt64
}
impl_add_multi_values_slice! {
/// Add multiple uint128 values via slice
///
/// # Parameters
///
/// * `values` - The uint128 value slice to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_uint128s_slice, UInt128, u128, DataType::UInt128
}
impl_add_multi_values_slice! {
/// Add multiple float32 values via slice
///
/// # Parameters
///
/// * `values` - The float32 value slice to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_float32s_slice, Float32, f32, DataType::Float32
}
impl_add_multi_values_slice! {
/// Add multiple float64 values via slice
///
/// # Parameters
///
/// * `values` - The float64 value slice to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_float64s_slice, Float64, f64, DataType::Float64
}
impl_add_multi_values_slice! {
/// Add multiple strings via slice
///
/// # Parameters
///
/// * `values` - The string slice to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_strings_slice, String, String, DataType::String
}
impl_add_multi_values_slice! {
/// Add multiple date values via slice
///
/// # Parameters
///
/// * `values` - The date value slice to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_dates_slice, Date, NaiveDate, DataType::Date
}
impl_add_multi_values_slice! {
/// Add multiple time values via slice
///
/// # Parameters
///
/// * `values` - The time value slice to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_times_slice, Time, NaiveTime, DataType::Time
}
impl_add_multi_values_slice! {
/// Add multiple datetime values via slice
///
/// # Parameters
///
/// * `values` - The datetime value slice to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_datetimes_slice, DateTime, NaiveDateTime, DataType::DateTime
}
impl_add_multi_values_slice! {
/// Add multiple UTC instant values via slice
///
/// # Parameters
///
/// * `values` - The UTC instant value slice to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_instants_slice, Instant, DateTime<Utc>, DataType::Instant
}
impl_add_multi_values_slice! {
/// Add multiple big integer values via slice
///
/// # Parameters
///
/// * `values` - The big integer value slice to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_bigintegers_slice, BigInteger, BigInt, DataType::BigInteger
}
impl_add_multi_values_slice! {
/// Add multiple big decimal values via slice
///
/// # Parameters
///
/// * `values` - The big decimal value slice to add
///
/// # Returns
///
/// If types match, returns `Ok(())`; otherwise returns an error
add_bigdecimals_slice, BigDecimal, BigDecimal, DataType::BigDecimal
}
impl_add_multi_values_slice! {
/// Add multiple isize values via slice
add_intsizes_slice, IntSize, isize, DataType::IntSize
}
impl_add_multi_values_slice! {
/// Add multiple usize values via slice
add_uintsizes_slice, UIntSize, usize, DataType::UIntSize
}
impl_add_multi_values_slice! {
/// Add multiple Duration values via slice
add_durations_slice, Duration, Duration, DataType::Duration
}
impl_add_multi_values_slice! {
/// Add multiple Url values via slice
add_urls_slice, Url, Url, DataType::Url
}
impl_add_multi_values_slice! {
/// Add multiple StringMap values via slice
add_string_maps_slice, StringMap, HashMap<String, String>, DataType::StringMap
}
impl_add_multi_values_slice! {
/// Add multiple Json values via slice
add_jsons_slice, Json, serde_json::Value, DataType::Json
}
}