MCPcopy Create free account
hub / github.com/apache/arrow-rs / decimal32_array_from_vec

Function decimal32_array_from_vec

arrow/benches/array_from.rs:76–85  ·  view source on GitHub ↗
(array: &[Option<i32>])

Source from the content-addressed store, hash-verified

74}
75
76fn decimal32_array_from_vec(array: &[Option<i32>]) {
77 hint::black_box(
78 array
79 .iter()
80 .copied()
81 .collect::<Decimal32Array>()
82 .with_precision_and_scale(9, 2)
83 .unwrap(),
84 );
85}
86
87fn decimal64_array_from_vec(array: &[Option<i64>]) {
88 hint::black_box(

Callers 1

Calls 2

iterMethod · 0.45

Tested by

no test coverage detected