Function arrow::compute::kernels::boolean::not

source ·
pub fn not(left: &BooleanArray) -> Result<BooleanArray, ArrowError>
Expand description

Performs unary NOT operation on an arrays. If value is null then the result is also null.

§Error

This function never errors. It returns an error for consistency.

§Example

let a = BooleanArray::from(vec![Some(false), Some(true), None]);
let not_a = not(&a).unwrap();
assert_eq!(not_a, BooleanArray::from(vec![Some(true), Some(false), None]));