pub fn is_not_null(input: &dyn Array) -> BooleanArray {
    let values = match input.validity() {
        None => unsafe { Bitmap::from_trusted_len_iter((0..input.len()).map(|_| true)) },
        Some(buffer) => buffer.clone(),
    };
    BooleanArray::from_data(values, None)
}
/// Returns a non-null [BooleanArray] with whether each value of the array is not null.
/// # Example
/// ```rust
/// use arrow2::array::BooleanArray;
/// use arrow2::compute::boolean::is_not_null;
/// # fn main() {
/// let a = BooleanArray::from(&vec![Some(false), Some(true), None]);
/// let a_is_not_null = is_not_null(&a);
/// assert_eq!(a_is_not_null, BooleanArray::from_slice(&vec![true, true, false]));
/// # }
/// ```
Returns a non-null [BooleanArray] with whether each value of the array is not null.
Returns a non - null [ BooleanArray ] with whether each value of the array is not null .
pub fn is_not_null(input: &dyn Array) -> BooleanArray {
    let values = match input.validity() {
        None => unsafe { Bitmap::from_trusted_len_iter((0..input.len()).map(|_| true)) },
        Some(buffer) => buffer.clone(),
    };
    BooleanArray::from_data(values, None)
}
pub fn is_not_null ( input : & dyn Array ) -> BooleanArray { let values = match input . validity ( ) { None => unsafe { Bitmap :: from_trusted_len_iter ( ( 0 .. input . len ( ) ) . map ( | _ | true ) ) } , Some ( buffer ) => buffer . clone ( ) , } ; BooleanArray :: from_data ( values , None ) }
Returns a non-null [BooleanArray] with whether each value of the array is not null.
Returns a non - null [ BooleanArray ] with whether each value of the array is not null .
input
&dyn Array
input
&dyn Array
example
```rust
use arrow2::array::BooleanArray;
use arrow2::compute::boolean::is_not_null.
` ` ` rust use arrow2 :: array :: BooleanArray ; use arrow2 :: compute :: boolean :: is_not_null .
fn main() {
let a = BooleanArray::from(&vec![Some(false), Some(true), None]);
let a_is_not_null = is_not_null(&a);
assert_eq!(a_is_not_null, BooleanArray::from_slice(&vec![true, true, false])).
let a = BooleanArray :: from ( &vec! [ Some ( false ) Some ( true ) None ] ) ; let a_is_not_null = is_not_null ( &a ) ; assert_eq! ( a_is_not_null BooleanArray :: from_slice ( &vec! [ true true false ] )) .
}
None