fn take_no_validity<I: Index>(values: &Bitmap, indices: &[I]) -> (Bitmap, Option<Bitmap>) {
    let values = indices.iter().map(|index| values.get_bit(index.to_usize()));
    let buffer = Bitmap::from_trusted_len_iter(values);

    (buffer, None)
}
// take implementation when neither values nor indices contain nulls
take implementation when neither values nor indices contain nulls
take implementation when neither values nor indices contain nulls
fn take_no_validity<I: Index>(values: &Bitmap, indices: &[I]) -> (Bitmap, Option<Bitmap>) {
    let values = indices.iter().map(|index| values.get_bit(index.to_usize()));
    let buffer = Bitmap::from_trusted_len_iter(values);
    (buffer, None)
}
fn take_no_validity < I : Index > ( values : & Bitmap , indices : & [ I ] ) -> ( Bitmap , Option < Bitmap > ) { let values = indices . iter ( ) . map ( | index | values . get_bit ( index . to_usize ( ) ) ) ; let buffer = Bitmap :: from_trusted_len_iter ( values ) ; ( buffer , None ) }
take implementation when neither values nor indices contain nulls
take implementation when neither values nor indices contain nulls
values
&Bitmap
indices
&[I]
values
&Bitmap
indices
&[I]