pub fn is_null(input: &dyn Array) -> BooleanArray {
    let len = input.len();

    let values = match input.validity() {
        None => MutableBitmap::from_len_zeroed(len).into(),
        Some(buffer) => !buffer,
    };

    BooleanArray::from_data(values, None)
}
/// Returns a non-null [BooleanArray] with whether each value of the array is null.
/// # Error
/// This function never errors.
/// # Example
/// ```rust
/// use arrow2::array::BooleanArray;
/// use arrow2::compute::boolean::is_null;
/// # fn main() {
/// let a = BooleanArray::from(vec![Some(false), Some(true), None]);
/// let a_is_null = is_null(&a);
/// assert_eq!(a_is_null, BooleanArray::from_slice(vec![false, false, true]));
/// # }
/// ```
Returns a non-null [BooleanArray] with whether each value of the array is null.
Returns a non - null [ BooleanArray ] with whether each value of the array is null .
pub fn is_null(input: &dyn Array) -> BooleanArray {
    let len = input.len();
    let values = match input.validity() {
        None => MutableBitmap::from_len_zeroed(len).into(),
        Some(buffer) => !buffer,
    };
    BooleanArray::from_data(values, None)
}
pub fn is_null ( input : & dyn Array ) -> BooleanArray { let len = input . len ( ) ; let values = match input . validity ( ) { None => MutableBitmap :: from_len_zeroed ( len ) . into ( ) , Some ( buffer ) => ! buffer , } ; BooleanArray :: from_data ( values , None ) }
Returns a non-null [BooleanArray] with whether each value of the array is null.
Returns a non - null [ BooleanArray ] with whether each value of the array is null .
input
&dyn Array
input
&dyn Array
error
This function never errors.
This function never errors .
example
```rust
use arrow2::array::BooleanArray;
use arrow2::compute::boolean::is_null.
` ` ` rust use arrow2 :: array :: BooleanArray ; use arrow2 :: compute :: boolean :: is_null .
fn main() {
let a = BooleanArray::from(vec![Some(false), Some(true), None]);
let a_is_null = is_null(&a);
assert_eq!(a_is_null, BooleanArray::from_slice(vec![false, false, true])).
let a = BooleanArray :: from ( vec! [ Some ( false ) Some ( true ) None ] ) ; let a_is_null = is_null ( &a ) ; assert_eq! ( a_is_null BooleanArray :: from_slice ( vec! [ false false true ] )) .
}
None