pub fn can_take(data_type: &DataType) -> bool
Available on crate feature compute_take only.
Expand description

Checks if an array of type datatype can perform take operation

Examples

use arrow2::compute::take::can_take;
use arrow2::datatypes::{DataType};

let data_type = DataType::Int8;
assert_eq!(can_take(&data_type), true);