File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ use crate::BufferBuilder;
26
26
use crate :: { bytes:: Bytes , native:: ArrowNativeType } ;
27
27
28
28
use super :: ops:: bitwise_unary_op_helper;
29
- use super :: MutableBuffer ;
29
+ use super :: { MutableBuffer , ScalarBuffer } ;
30
30
31
31
/// Buffer represents a contiguous memory region that can be shared with other buffers and across
32
32
/// thread boundaries.
@@ -391,6 +391,12 @@ impl<T: ArrowNativeType> From<Vec<T>> for Buffer {
391
391
}
392
392
}
393
393
394
+ impl < T : ArrowNativeType > From < ScalarBuffer < T > > for Buffer {
395
+ fn from ( value : ScalarBuffer < T > ) -> Self {
396
+ value. into_inner ( )
397
+ }
398
+ }
399
+
394
400
/// Creating a `Buffer` instance by storing the boolean values into the buffer
395
401
impl FromIterator < bool > for Buffer {
396
402
fn from_iter < I > ( iter : I ) -> Self
You can’t perform that action at this time.
0 commit comments