Skip to content

Commit

Permalink
Accept any &dyn Array in nullif kernel (#2940)
Browse files Browse the repository at this point in the history
* Accept any &dyn Array in nullif kernel

* Clippy

* Update docs
  • Loading branch information
tustvold committed Oct 31, 2022
1 parent 99e205f commit 3a90654
Show file tree
Hide file tree
Showing 2 changed files with 346 additions and 73 deletions.
8 changes: 4 additions & 4 deletions arrow-buffer/src/buffer/ops.rs
Expand Up @@ -66,10 +66,10 @@ pub fn bitwise_bin_op_helper<F>(
right: &Buffer,
right_offset_in_bits: usize,
len_in_bits: usize,
op: F,
mut op: F,
) -> Buffer
where
F: Fn(u64, u64) -> u64,
F: FnMut(u64, u64) -> u64,
{
let left_chunks = left.bit_chunks(left_offset_in_bits, len_in_bits);
let right_chunks = right.bit_chunks(right_offset_in_bits, len_in_bits);
Expand Down Expand Up @@ -97,10 +97,10 @@ pub fn bitwise_unary_op_helper<F>(
left: &Buffer,
offset_in_bits: usize,
len_in_bits: usize,
op: F,
mut op: F,
) -> Buffer
where
F: Fn(u64) -> u64,
F: FnMut(u64) -> u64,
{
// reserve capacity and set length so we can get a typed view of u64 chunks
let mut result =
Expand Down

0 comments on commit 3a90654

Please sign in to comment.